universal.communication
Class ProcessDetails

java.lang.Object
  |
  +--universal.communication.ProcessDetails
All Implemented Interfaces:
java.io.Serializable

public class ProcessDetails
extends java.lang.Object
implements java.io.Serializable

Each replicated server and the client keeps a description of all the replicated servers : the port where it is listenning, its IP address, its pid.

See Also:
Serialized Form

Field Summary
 java.net.InetAddress address
          The IP address of the replicated server that is described by this object
 int pid
          The pid of the replicated server that is decribed by this object
 int port
          The port where this replicated server is listenning
 
Constructor Summary
ProcessDetails(int pid, java.net.InetAddress address, int port)
           
 
Method Summary
static universal.communication.ProcessDetails decode(java.io.DataInputStream dis)
           
 byte[] encode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pid

public int pid
The pid of the replicated server that is decribed by this object


address

public java.net.InetAddress address
The IP address of the replicated server that is described by this object


port

public int port
The port where this replicated server is listenning

Constructor Detail

ProcessDetails

public ProcessDetails(int pid,
                      java.net.InetAddress address,
                      int port)
Method Detail

decode

public static universal.communication.ProcessDetails decode(java.io.DataInputStream dis)

encode

public byte[] encode()

toString

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