Package i5.las2peer.p2p.pastry
Class L2pScribeContent
java.lang.Object
i5.las2peer.p2p.pastry.L2pScribeContent
- All Implemented Interfaces:
Serializable
,rice.p2p.scribe.ScribeContent
- Direct Known Subclasses:
AgentJoinedContent
,BroadcastMessageContent
,SearchAgentContent
base class for content published to the pub/sub-facilities of the pastry library (Scribe)
- See Also:
-
Constructor Summary
ConstructorDescriptionL2pScribeContent
(rice.p2p.commonapi.NodeHandle from) create a new scribe content created at the given node handle -
Method Summary
Modifier and TypeMethodDescriptionrice.p2p.commonapi.NodeHandle
get the origin node of this contentlong
the (random) id of this contentlong
get the (unix) timestamp of creation
-
Constructor Details
-
L2pScribeContent
public L2pScribeContent(rice.p2p.commonapi.NodeHandle from) create a new scribe content created at the given node handle- Parameters:
from
- A sending node handle
-
-
Method Details
-
getOrigin
public rice.p2p.commonapi.NodeHandle getOrigin()get the origin node of this content- Returns:
- a handle to the origin of this content
-
getRandomId
public long getRandomId()the (random) id of this content- Returns:
- an id
-
getTimestamp
public long getTimestamp()get the (unix) timestamp of creation- Returns:
- (unix) timestamp
-