|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dd.directmail.api.DirectMail
DirectMail
is mail
(i.e. msg
)
sent out and forwarded by the
DirectMailStage
as a type of multicast msg
that will efficiently deliver the mail
to all the
nodes
in the system.
Field Summary | |
---|---|
int |
currentRadius
currentRadius is the number of hops between the
src node and the local node. |
boolean |
inbound
Whether this message is being received ( true ) or sent
(false ). |
Constructor Summary | |
---|---|
DirectMail(InputBuffer buffer)
Constructs a DirectMail from its
serialized form. |
|
DirectMail(SecureHash src,
int targetRadius,
long srcTime)
Constucts a data-driven server hb message from specified parameters. |
Method Summary | |
---|---|
Object |
clone()
Specified by java.lang.Object |
int |
getCurrentRadius()
getCurrentRadius returns the number of hops between the
src node and the local node. |
SecureHash |
getSrc()
getSrc returns the mail that is to be delivered
to every node. |
long |
getSrcTime()
getSrcTime returns the current time of the src server in
microseconds. |
int |
getTargetRadius()
getTargetRadius returns the maximum radius for the mail
msg; that is, TTL. |
void |
serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable |
String |
toString()
Specified by java.lang.Object |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public boolean inbound
true
) or sent
(false
).
public int currentRadius
currentRadius
is the number of hops between the
src
node and the local node.
Constructor Detail |
public DirectMail(SecureHash src, int targetRadius, long srcTime)
src
- Identifier of the src
node
targetRadius
- Max radius for DirectMail i.e. TTL.srcTime
- Current time of the src server in
microseconds.public DirectMail(InputBuffer buffer) throws QSException
DirectMail
from its
serialized
form.
buffer
- serialized
form of object.Method Detail |
public void serialize(OutputBuffer buffer)
serialize
in interface QuickSerializable
public SecureHash getSrc()
getSrc
returns the mail that is to be delivered
to every node.
public long getSrcTime()
getSrcTime
returns the current time of the src server in
microseconds.
public int getTargetRadius()
getTargetRadius
returns the maximum radius for the mail
msg; that is, TTL.
public int getCurrentRadius()
getCurrentRadius
returns the number of hops between the
src
node and the local node.
src
node
and the local node.public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |