dermi.messaging.pastry
Class InterceptorMessage

java.lang.Object
  extended by rice.p2p.scribe.messaging.ScribeMessage
      extended by 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

Field Summary
protected  rice.p2p.scribe.ScribeContent content
           
protected  boolean interceptionProcessFinished
           
protected  java.util.ArrayList interceptors
           
protected  rice.p2p.commonapi.NodeHandle rootHandle
           
 
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
 
Method Summary
 rice.p2p.scribe.ScribeContent getContent()
          Returns the content
 java.util.ArrayList getInterceptors()
          Returns the remaining interceptors
 boolean isInterceptionFinished()
          Returns whether the interception process is finished
 java.lang.String toString()
           
 
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
 

Field Detail

content

protected rice.p2p.scribe.ScribeContent content

rootHandle

protected rice.p2p.commonapi.NodeHandle rootHandle

interceptors

protected java.util.ArrayList interceptors

interceptionProcessFinished

protected boolean interceptionProcessFinished
Constructor Detail

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 handle
source - NodeHandle Source node handle
topic - Topic Group's identifier
content - ScribeContent The content of the message
interceptors - 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 handle
source - NodeHandle Source node handle
topic - Topic Group's identifier
content - ScribeContent The content of the message
interceptors - ArrayList Remaining interceptors to be traversed
isFinished - boolean Is interception finished?
Method Detail

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