|
ANTS v2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ants.core.Capsule | +--apps.stats.StatsCapsule
Stats request capsule.
Field Summary | |
java.util.Vector |
branches
|
byte |
depth
|
short |
dpt
|
long |
keyid
|
long |
now
|
int |
rootaddress
|
Fields inherited from class ants.core.Capsule |
MAX_TTL |
Constructor Summary | |
StatsCapsule()
|
|
StatsCapsule(int d)
|
Method Summary | |
Xdr |
decode()
Decode a capsule header from this Capsule's xdr field. |
Xdr |
encode()
Stats request capsules look like: 4 Address of the root of the tree 4 Unique key id of this request tree 2 Application port 1 Depth 4 Time capsule was sent |
boolean |
evaluate(Node n)
The forwarding routine for the Capsule. |
int |
length()
Return the length of the capsule header that all capsule encodings will include. |
Methods inherited from class ants.core.Capsule |
create,
encodeCapsuleForSend,
findExtension,
findMID,
findPID,
getDst,
getPrevious,
getSrc,
getTTL,
prime,
setDst,
toString |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public int rootaddress
public long keyid
public short dpt
public byte depth
public long now
public java.util.Vector branches
Constructor Detail |
public StatsCapsule()
public StatsCapsule(int d)
Method Detail |
public int length()
public Xdr encode()
#xdr
public Xdr decode()
public boolean evaluate(Node n)
This method should not access other Java classes, and should only interact with the local system through the local node interface. This routine should "terminate quickly."
XXX perhaps default to forwarding the Capsule?
node
- the local node interface
|
ANTS v2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |