|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.sics.tasim.props.SimpleContent
se.sics.tasim.props.AdminContent
public class AdminContent
AdminContent
is used for administrative communication with the
server.
A few examples of its usage:
Warning: serialized objects of this class might not be compatible with future versions. Only use serialization of this class for temporary storage or RMI using the same version of the class.
Field Summary | |
---|---|
static int |
AUTH
|
static int |
ERROR
|
static int |
JOIN_SIMULATION
|
static int |
NEXT_SIMULATION
|
static int |
NO_ERROR
Error types |
static int |
NO_SIMULATION_CREATED
|
static int |
NONE
Administration types |
static int |
NOT_AUTH
|
static int |
NOT_SUPPORTED
|
static int |
PING
|
static int |
PONG
|
static int |
QUIT
|
static int |
SERVER_TIME
|
Constructor Summary | |
---|---|
AdminContent()
|
|
AdminContent(int type)
|
|
AdminContent(int type,
int error)
|
|
AdminContent(int type,
int error,
java.lang.String errorReason)
|
Method Summary | |
---|---|
static Context |
createContext()
|
int |
getError()
|
static java.lang.String |
getErrorAsString(int errorType)
|
java.lang.String |
getErrorReason()
|
java.lang.String |
getTransportName()
Returns the transport name used for externalization. |
int |
getType()
|
static java.lang.String |
getTypeAsString(int type)
|
boolean |
isError()
|
void |
read(TransportReader reader)
Reads the state for this transportable from the specified reader. |
void |
setError(int error)
|
void |
setError(int error,
java.lang.String errorReason)
|
java.lang.String |
toString()
|
void |
write(TransportWriter writer)
Writes the state for this transportable to the specified writer. |
Methods inherited from class se.sics.tasim.props.SimpleContent |
---|
getAttribute, getAttribute, getAttributeAsFloat, getAttributeAsInt, getAttributeAsLong, isLocked, lock, params, removeAttribute, setAttribute, setAttribute, setAttribute, setAttribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NONE
public static final int ERROR
public static final int PING
public static final int PONG
public static final int AUTH
public static final int SERVER_TIME
public static final int NEXT_SIMULATION
public static final int JOIN_SIMULATION
public static final int QUIT
public static final int NO_ERROR
public static final int NOT_SUPPORTED
public static final int NOT_AUTH
public static final int NO_SIMULATION_CREATED
Constructor Detail |
---|
public AdminContent()
public AdminContent(int type)
public AdminContent(int type, int error)
public AdminContent(int type, int error, java.lang.String errorReason)
Method Detail |
---|
public static Context createContext()
public static java.lang.String getTypeAsString(int type)
public static java.lang.String getErrorAsString(int errorType)
public int getType()
public boolean isError()
public int getError()
public java.lang.String getErrorReason()
public void setError(int error)
public void setError(int error, java.lang.String errorReason)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTransportName()
public void read(TransportReader reader) throws java.text.ParseException
Transportable
read
in interface Transportable
read
in class SimpleContent
reader
- the reader to read data from
java.text.ParseException
- if a parse error occurspublic void write(TransportWriter writer)
Transportable
write
in interface Transportable
write
in class SimpleContent
writer
- the writer to write data to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |