se.sics.tasim.props
Class Ping

java.lang.Object
  extended by se.sics.tasim.props.Ping
All Implemented Interfaces:
java.io.Serializable, Transportable

public class Ping
extends java.lang.Object
implements Transportable, java.io.Serializable

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.

See Also:
Serialized Form

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

PONG

public static final int PONG
See Also:
Constant Field Values

PING

public static final int PING
See Also:
Constant Field Values
Constructor Detail

Ping

public Ping()

Ping

public Ping(int flags)
Deprecated. use Ping() instead for ping and createPong for pong

Method Detail

isPing

public boolean isPing()

isPong

public boolean isPong()

createPong

public Ping createPong()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTransportName

public java.lang.String getTransportName()
Returns the transport name used for externalization.

Specified by:
getTransportName in interface Transportable

read

public void read(TransportReader reader)
          throws java.text.ParseException
Description copied from interface: Transportable
Reads the state for this transportable from the specified reader.

Specified by:
read in interface Transportable
Parameters:
reader - the reader to read data from
Throws:
java.text.ParseException - if a parse error occurs

write

public void write(TransportWriter writer)
Description copied from interface: Transportable
Writes the state for this transportable to the specified writer.

Specified by:
write in interface Transportable
Parameters:
writer - the writer to write data to


Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.