dermi.messaging.pastry
Class InterceptorMessage
java.lang.Object
rice.p2p.scribe.messaging.ScribeMessage
dermi.messaging.pastry.InterceptorMessage
- All Implemented Interfaces:
- java.io.Serializable, rice.p2p.commonapi.Message
public class InterceptorMessage
- extends rice.p2p.scribe.messaging.ScribeMessage
This class wraps an interceptor message. Used by the
distributed interception facility
- Version:
- 1.2
- Author:
- Carles Pairot
- See Also:
- Serialized Form
Fields inherited from class rice.p2p.scribe.messaging.ScribeMessage |
source, topic |
Fields inherited from interface rice.p2p.commonapi.Message |
HIGH_PRIORITY, LOW_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY |
Constructor Summary |
InterceptorMessage(rice.p2p.commonapi.NodeHandle rootHandle,
rice.p2p.commonapi.NodeHandle source,
rice.p2p.scribe.Topic topic,
rice.p2p.scribe.ScribeContent content,
java.util.ArrayList interceptors)
Constructor |
InterceptorMessage(rice.p2p.commonapi.NodeHandle rootHandle,
rice.p2p.commonapi.NodeHandle source,
rice.p2p.scribe.Topic topic,
rice.p2p.scribe.ScribeContent content,
java.util.ArrayList interceptors,
boolean isFinished)
Constructor |
Methods inherited from class rice.p2p.scribe.messaging.ScribeMessage |
getPriority, getSource, getTopic, setSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
content
protected rice.p2p.scribe.ScribeContent content
rootHandle
protected rice.p2p.commonapi.NodeHandle rootHandle
interceptors
protected java.util.ArrayList interceptors
interceptionProcessFinished
protected boolean interceptionProcessFinished
InterceptorMessage
public InterceptorMessage(rice.p2p.commonapi.NodeHandle rootHandle,
rice.p2p.commonapi.NodeHandle source,
rice.p2p.scribe.Topic topic,
rice.p2p.scribe.ScribeContent content,
java.util.ArrayList interceptors)
- Constructor
- Parameters:
rootHandle
- NodeHandle Root's node handlesource
- NodeHandle Source node handletopic
- Topic Group's identifiercontent
- ScribeContent The content of the messageinterceptors
- ArrayList Remaining interceptors to be traversed
InterceptorMessage
public InterceptorMessage(rice.p2p.commonapi.NodeHandle rootHandle,
rice.p2p.commonapi.NodeHandle source,
rice.p2p.scribe.Topic topic,
rice.p2p.scribe.ScribeContent content,
java.util.ArrayList interceptors,
boolean isFinished)
- Constructor
- Parameters:
rootHandle
- NodeHandle Root's node handlesource
- NodeHandle Source node handletopic
- Topic Group's identifiercontent
- ScribeContent The content of the messageinterceptors
- ArrayList Remaining interceptors to be traversedisFinished
- boolean Is interception finished?
getContent
public rice.p2p.scribe.ScribeContent getContent()
- Returns the content
- Returns:
- The content
getInterceptors
public java.util.ArrayList getInterceptors()
- Returns the remaining interceptors
- Returns:
- ArrayList
isInterceptionFinished
public boolean isInterceptionFinished()
- Returns whether the interception process is finished
- Returns:
- boolean true if it is finished
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object