Rice Pastry API

rice.p2p.scribe.messaging
Class ScribeMessage

java.lang.Object
  |
  +--rice.p2p.scribe.messaging.ScribeMessage
All Implemented Interfaces:
Message, java.io.Serializable
Direct Known Subclasses:
AbstractSubscribeMessage, AnycastMessage, DropMessage, PublishMessage, PublishRequestMessage, UnsubscribeMessage

public abstract class ScribeMessage
extends java.lang.Object
implements Message

Version:
$Id: ScribeMessage.java,v 1.1 2003/09/24 02:20:08 amislove Exp $
Author:
Alan Mislove
See Also:
Serialized Form

Field Summary
protected  rice.p2p.commonapi.NodeHandle source
           
protected  rice.p2p.scribe.Topic topic
           
 
Constructor Summary
protected ScribeMessage(rice.p2p.commonapi.NodeHandle source, rice.p2p.scribe.Topic topic)
          Constructor which takes a unique integer Id
 
Method Summary
 rice.p2p.commonapi.NodeHandle getSource()
          Method which returns this messages' source address
 rice.p2p.scribe.Topic getTopic()
          Method which returns this messages' topic
 void setSource(rice.p2p.commonapi.NodeHandle source)
          Method which set this messages' source address
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected rice.p2p.commonapi.NodeHandle source

topic

protected rice.p2p.scribe.Topic topic
Constructor Detail

ScribeMessage

protected ScribeMessage(rice.p2p.commonapi.NodeHandle source,
                        rice.p2p.scribe.Topic topic)
Constructor which takes a unique integer Id

Parameters:
source - The source address
topic - The topic
Method Detail

getSource

public rice.p2p.commonapi.NodeHandle getSource()
Method which returns this messages' source address

Returns:
The source of this message

setSource

public void setSource(rice.p2p.commonapi.NodeHandle source)
Method which set this messages' source address

Parameters:
source - The source of this message

getTopic

public rice.p2p.scribe.Topic getTopic()
Method which returns this messages' topic

Returns:
The topic of this message

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection