CTL.Types
Class GroupInfo

java.lang.Object
  extended by CTL.Types.GroupInfo
All Implemented Interfaces:
Writable

public class GroupInfo
extends java.lang.Object
implements Writable

Group information storage


Field Summary
private  long objID
          ObjectID a Group object
private  PeerID pid
          Local Peer ID
private  boolean wantTerm
           
 
Constructor Summary
GroupInfo(PeerID pid, long objID)
          Create a new GroupInfo object
 
Method Summary
 IPaddr host()
          Retrieve the IP address
 long id()
          Retrieve the objID
 PeerID pid()
          Retrieve the PeerID
 int port()
          Retrieve the port
 void read(SerialIn in)
          Serial read function
 java.lang.String toString()
          Retrieve a string representation of this object
 void write(SerialOut out)
          Serial write function
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pid

private PeerID pid
Local Peer ID


objID

private long objID
ObjectID a Group object


wantTerm

private boolean wantTerm
Constructor Detail

GroupInfo

public GroupInfo(PeerID pid,
                 long objID)
Create a new GroupInfo object

Parameters:
pid - PeerID
objID - ObjectID
Method Detail

toString

public java.lang.String toString()
Retrieve a string representation of this object

Overrides:
toString in class java.lang.Object
Returns:
String

read

public void read(SerialIn in)
          throws java.io.IOException,
                 java.lang.ClassNotFoundException,
                 java.lang.InstantiationException,
                 java.lang.IllegalAccessException,
                 java.lang.reflect.InvocationTargetException
Serial read function

Specified by:
read in interface Writable
Parameters:
in - Input stream
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

write

public void write(SerialOut out)
           throws java.io.IOException,
                  java.lang.IllegalAccessException,
                  java.lang.reflect.InvocationTargetException,
                  CTLException
Serial write function

Specified by:
write in interface Writable
Parameters:
out - Output stream
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException

host

public IPaddr host()
Retrieve the IP address

Returns:
IPaddr

port

public int port()
Retrieve the port

Returns:
Port

pid

public PeerID pid()
Retrieve the PeerID

Returns:
PeerID

id

public long id()
Retrieve the objID

Returns:
ObjectID