dermi.messaging.pastry
Class InterceptorSubscribeMessage

java.lang.Object
  extended by rice.p2p.scribe.messaging.ScribeMessage
      extended by dermi.messaging.pastry.InterceptorSubscribeMessage
All Implemented Interfaces:
java.io.Serializable, rice.p2p.commonapi.Message

public class InterceptorSubscribeMessage
extends rice.p2p.scribe.messaging.ScribeMessage

Message sent when willing to subscribe an interceptor to an object group

Version:
1.2
Author:
Carles Pairot
See Also:
Serialized Form

Field Summary
protected  rice.p2p.commonapi.NodeHandle interceptor
           
protected  java.lang.String intId
           
 
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
InterceptorSubscribeMessage(rice.p2p.commonapi.NodeHandle source, rice.p2p.scribe.Topic topic, rice.p2p.commonapi.NodeHandle interceptor, java.lang.String intId)
          Constructor
 
Method Summary
 rice.p2p.commonapi.NodeHandle getInterceptorHandle()
          Returns the interceptor's NodeHandle
 java.lang.String getInterceptorId()
          Returns the interceptor's identifier
 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

interceptor

protected rice.p2p.commonapi.NodeHandle interceptor

intId

protected java.lang.String intId
Constructor Detail

InterceptorSubscribeMessage

public InterceptorSubscribeMessage(rice.p2p.commonapi.NodeHandle source,
                                   rice.p2p.scribe.Topic topic,
                                   rice.p2p.commonapi.NodeHandle interceptor,
                                   java.lang.String intId)
Constructor

Parameters:
source - NodeHandle Source node handle
topic - Topic Group's identifier
interceptor - NodeHandle Interceptor's node handle
intId - String Interceptor id
Method Detail

getInterceptorHandle

public rice.p2p.commonapi.NodeHandle getInterceptorHandle()
Returns the interceptor's NodeHandle

Returns:
NodeHandle Interceptor's NodeHandle

getInterceptorId

public java.lang.String getInterceptorId()
Returns the interceptor's identifier

Returns:
String Interceptor's identifier

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object