ePOST API

rice.post.messaging
Class PresenceMessage

java.lang.Object
  extended by rice.post.messaging.PostMessage
      extended by rice.post.messaging.PresenceMessage
All Implemented Interfaces:
java.io.Serializable

public class PresenceMessage
extends PostMessage

This is the message broadcast to the Scribe group of the user to inform replica holders that that user is available at the given nodeid.

See Also:
Serialized Form

Constructor Summary
PresenceMessage(PostEntityAddress sender, NodeHandle handle)
          Constructs a PresenceMessage
 
Method Summary
 NodeHandle getHandle()
          Gets the handle to this user.
 Id getLocation()
          Gets the location of the user.
 
Methods inherited from class rice.post.messaging.PostMessage
getSender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PresenceMessage

public PresenceMessage(PostEntityAddress sender,
                       NodeHandle handle)
Constructs a PresenceMessage

Parameters:
sender - The address of the user asserted to be present.
location - The user's asserted location.
Method Detail

getLocation

public Id getLocation()
Gets the location of the user.

Returns:
The location in the Pastry ring of the user.

getHandle

public NodeHandle getHandle()
Gets the handle to this user.

Returns:
The location in the Pastry ring of the user.

ePOST API

Copyright © 2001-2005 - Rice Pastry.