Class L2pScribeContent

java.lang.Object
i5.las2peer.p2p.pastry.L2pScribeContent
All Implemented Interfaces:
Serializable, rice.p2p.scribe.ScribeContent
Direct Known Subclasses:
AgentJoinedContent, BroadcastMessageContent, SearchAgentContent

public abstract class L2pScribeContent extends Object implements rice.p2p.scribe.ScribeContent
base class for content published to the pub/sub-facilities of the pastry library (Scribe)
See Also:
  • 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