|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.sics.tasim.props.Ping
public class Ping
Ping
is used to verify the liveness of agent connections and
also to measure network response times.
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 |
PING
|
static int |
PONG
|
Constructor Summary | |
---|---|
Ping()
|
|
Ping(int flags)
Deprecated. use Ping() instead for ping and createPong for pong |
Method Summary | |
---|---|
Ping |
createPong()
|
java.lang.String |
getTransportName()
Returns the transport name used for externalization. |
boolean |
isPing()
|
boolean |
isPong()
|
void |
read(TransportReader reader)
Reads the state for this transportable from the specified reader. |
java.lang.String |
toString()
|
void |
write(TransportWriter writer)
Writes the state for this transportable to the specified writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PONG
public static final int PING
Constructor Detail |
---|
public Ping()
public Ping(int flags)
Method Detail |
---|
public boolean isPing()
public boolean isPong()
public Ping createPong()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTransportName()
getTransportName
in interface Transportable
public void read(TransportReader reader) throws java.text.ParseException
Transportable
read
in interface Transportable
reader
- the reader to read data from
java.text.ParseException
- if a parse error occurspublic void write(TransportWriter writer)
Transportable
write
in interface Transportable
writer
- the writer to write data to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |