|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.shared.admin.AbstractAdminMessage
org.objectweb.joram.shared.admin.AdminReply
org.objectweb.joram.shared.admin.GetRightsReply
public class GetRightsReply
A Monitor_GetUsersRep
instance replies to a get users,
readers or writers monitoring request.
Field Summary | |
---|---|
private boolean |
isFreeReading
True if all users can read this destination. |
private boolean |
isFreeWriting
True if all users can write this destination. |
private java.util.Hashtable |
readers
Table holding the readers identifications. |
private static long |
serialVersionUID
define serialVersionUID for interoperability |
private java.util.Hashtable |
writers
Table holding the writers identifications. |
Fields inherited from class org.objectweb.joram.shared.admin.AdminReply |
---|
BAD_CLUSTER_REQUEST, NAME_ALREADY_USED, NAME_UNKNOWN, PERMISSION_DENIED, SERVER_ID_ALREADY_USED, START_FAILURE, UNKNOWN_REQUEST, UNKNOWN_SERVER |
Constructor Summary | |
---|---|
GetRightsReply()
|
|
GetRightsReply(boolean success,
java.lang.String info,
boolean isFreeReading,
boolean isFreeWriting)
Constructs a Monitor_GetUsersRep instance. |
Method Summary | |
---|---|
void |
addReader(java.lang.String name,
java.lang.String proxyId)
Adds a reader to the table. |
void |
addWriter(java.lang.String name,
java.lang.String proxyId)
Adds a writer to the table. |
protected int |
getClassId()
|
java.util.Hashtable |
getReaders()
Returns the readers table. |
java.util.Hashtable |
getWriters()
Returns the writers table. |
boolean |
isFreeReading()
Returns true if all users can read this destination |
boolean |
isFreeWriting()
Returns true if all users write read this destination |
void |
readFrom(java.io.InputStream is)
The object implements the readFrom method to restore its contents from the input stream. |
void |
writeTo(java.io.OutputStream os)
The object implements the writeTo method to write its contents to the output stream. |
Methods inherited from class org.objectweb.joram.shared.admin.AdminReply |
---|
getErrorCode, getInfo, getReplyObject, succeeded, toString |
Methods inherited from class org.objectweb.joram.shared.admin.AbstractAdminMessage |
---|
read, readExternal, soapCode, soapDecode, write, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private boolean isFreeReading
private boolean isFreeWriting
private java.util.Hashtable readers
private java.util.Hashtable writers
Constructor Detail |
---|
public GetRightsReply(boolean success, java.lang.String info, boolean isFreeReading, boolean isFreeWriting)
Monitor_GetUsersRep
instance.
public GetRightsReply()
Method Detail |
---|
public boolean isFreeReading()
public boolean isFreeWriting()
public void addReader(java.lang.String name, java.lang.String proxyId)
public java.util.Hashtable getReaders()
public void addWriter(java.lang.String name, java.lang.String proxyId)
public java.util.Hashtable getWriters()
protected int getClassId()
getClassId
in class AdminReply
public void readFrom(java.io.InputStream is) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class AdminReply
is
- the stream to read data from in order to restore the object
java.io.IOException
public void writeTo(java.io.OutputStream os) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class AdminReply
os
- the stream to write the object to
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |