seda.sandStorm.test.bench.simple_p2p
Class Message

java.lang.Object
  extended by seda.sandStorm.test.bench.simple_p2p.Message
All Implemented Interfaces:
QueueElementIF, SimpleP2PConst

public class Message
extends java.lang.Object
implements QueueElementIF, SimpleP2PConst


Field Summary
 ATcpConnection conn
           
private static boolean DEBUG
           
 int seqNum
           
 int status
           
static int STATUS_OK
           
static int STATUS_REJECTED
           
 
Fields inherited from interface seda.sandStorm.test.bench.simple_p2p.SimpleP2PConst
MSG_SIZE, PORT
 
Constructor Summary
Message(byte[] data)
           
Message(byte[] data, ATcpConnection conn)
           
Message(int seqNum)
           
Message(int seqNum, ATcpConnection conn)
           
Message(int seqNum, int status)
           
Message(int seqNum, int status, ATcpConnection conn)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 byte[] format()
           
 int hashCode()
           
 void send()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

STATUS_OK

public static final int STATUS_OK
See Also:
Constant Field Values

STATUS_REJECTED

public static final int STATUS_REJECTED
See Also:
Constant Field Values

seqNum

public int seqNum

status

public int status

conn

public ATcpConnection conn
Constructor Detail

Message

public Message(int seqNum)

Message

public Message(int seqNum,
               int status)

Message

public Message(int seqNum,
               ATcpConnection conn)

Message

public Message(int seqNum,
               int status,
               ATcpConnection conn)

Message

public Message(byte[] data)

Message

public Message(byte[] data,
               ATcpConnection conn)
Method Detail

format

public byte[] format()

send

public void send()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

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