|
Joram 5.0.7 | ||||||||
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
public class AdminReply
An AdminReply
is a reply sent by a
org.objectweb.joram.mom.dest.AdminTopic
topic and containing data or
information destinated to a client administrator.
Field Summary | |
---|---|
static int |
NAME_ALREADY_USED
|
static int |
SERVER_ID_ALREADY_USED
|
static int |
START_FAILURE
|
static int |
UNKNOWN_SERVER
|
Constructor Summary | |
---|---|
AdminReply()
|
|
AdminReply(boolean success,
int errorCode,
java.lang.String info,
java.lang.Object replyObj)
Constructs an AdminReply instance. |
|
AdminReply(boolean success,
java.lang.String info)
Constructs an AdminReply instance. |
|
AdminReply(boolean success,
java.lang.String info,
java.lang.Object replyObj)
Constructs an AdminReply instance. |
Method Summary | |
---|---|
protected int |
getClassId()
|
int |
getErrorCode()
|
java.lang.String |
getInfo()
Returns the carried info. |
java.lang.Object |
getReplyObject()
Returns the carried object. |
void |
readFrom(java.io.InputStream is)
The object implements the readFrom method to restore its contents from the input stream. |
boolean |
succeeded()
Returns true if this reply replies to a successful request. |
java.lang.String |
toString()
|
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.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 |
---|
public static final int NAME_ALREADY_USED
public static final int START_FAILURE
public static final int SERVER_ID_ALREADY_USED
public static final int UNKNOWN_SERVER
Constructor Detail |
---|
public AdminReply(boolean success, java.lang.String info)
AdminReply
instance.
success
- true
if this reply replies to a successful
request.info
- Information to carry.public AdminReply(boolean success, java.lang.String info, java.lang.Object replyObj)
AdminReply
instance.
success
- true
if this reply replies to a successful
request.info
- Information to carry.replyObj
- Object to carry.public AdminReply(boolean success, int errorCode, java.lang.String info, java.lang.Object replyObj)
AdminReply
instance.
success
- true
if this reply replies to a successful
request.errorCode
- error code defining the type of the errorinfo
- Information to carry.replyObj
- Object to carry.public AdminReply()
Method Detail |
---|
public final boolean succeeded()
true
if this reply replies to a successful request.
public final java.lang.String getInfo()
public final java.lang.Object getReplyObject()
public final int getErrorCode()
public java.lang.String toString()
toString
in class java.lang.Object
protected int getClassId()
getClassId
in class AbstractAdminMessage
public void writeTo(java.io.OutputStream os) throws java.io.IOException
Streamable
os
- the stream to write the object to
java.io.IOException
public void readFrom(java.io.InputStream is) throws java.io.IOException
Streamable
is
- the stream to read data from in order to restore the object
java.io.IOException
|
Joram 5.0.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |