|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.inet.protocol.cbt.CBTPacket
Defines the format of the packet used by CBT.
The format is simplified from what is defined in RFC2453.
| Field Summary | |
long[] |
addrArray
|
long |
core
|
java.lang.Object |
extension
|
long |
group
|
long |
lasthop
|
long |
requester
|
int |
type
|
| Fields inherited from interface drcl.inet.protocol.cbt.CBTConstants |
CONFIRMED, DOWNSTREAM_EXPIRE, ECHO, ECHO_REPLY, ECHO_REQUEST, ECHO_RTX, FLUSH_TREE, INIT, JOIN_ACK, JOIN_REQUEST, JOIN_RTX, JOIN_TIMEOUT, QUIT_NOTIFICATION, QUIT_RTX, QUITTING, STATES, TIMER_TYPES, TRANSIENT, TYPES, UPSTREAM_EXPIRE |
| Constructor Summary | |
CBTPacket()
|
|
CBTPacket(int type_,
long requester_,
long[] addrArray_,
long currenthop_,
java.lang.Object extension_)
For echo-request/echo-reply. |
|
CBTPacket(int type_,
long requester_,
long group_,
long core_,
long currenthop_,
java.lang.Object extension_)
For all types except echo-request/echo-reply. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a clone of this object. |
void |
duplicate(java.lang.Object source_)
opies the content of the source_ object to this object.
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int type
public long requester
public long lasthop
public long group
public long core
public long[] addrArray
public java.lang.Object extension
| Constructor Detail |
public CBTPacket()
public CBTPacket(int type_,
long requester_,
long group_,
long core_,
long currenthop_,
java.lang.Object extension_)
public CBTPacket(int type_,
long requester_,
long[] addrArray_,
long currenthop_,
java.lang.Object extension_)
| Method Detail |
public void duplicate(java.lang.Object source_)
DrclObjsource_ object to this object.
he subclass must implement this method to realize DrclObj.clone().
duplicate in interface ObjectDuplicableduplicate in class DrclObjpublic java.lang.Object clone()
DrclObjDrclObj.duplicate(Object) to duplicate the content of this object to
the newly-created one.
This method uses getClass().newInstance() to create
new instance. Hence,
subclasses need to override this method only if the subclass is not
declared as public or does not have explicit no-argument constructor.
A subclass may override this method for performance reason.
clone in interface ObjectCloneableclone in class DrclObjpublic java.lang.String toString()
toString in class DrclObj
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||