dermi.core.pastry
Class InterceptorApp

java.lang.Object
  extended by dermi.core.pastry.InterceptorApp
All Implemented Interfaces:
InterceptorApp, java.io.Serializable

public class InterceptorApp
extends java.lang.Object
implements InterceptorApp

This class contains interceptor application's vital data (specific to Scribe)

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

Field Summary
 
Fields inherited from interface dermi.core.InterceptorApp
serialVersionUID
 
Constructor Summary
InterceptorApp(java.lang.String key, rice.p2p.scribe.ScribeClient client, rice.p2p.commonapi.NodeHandle handle)
          Constructor
 
Method Summary
 ScribeClient getApplication()
          Get interceptor application
 rice.p2p.commonapi.NodeHandle getApplicationNodeHandle()
          Get interceptor application's node handle
 java.lang.String getInterceptorId()
          Get interceptor id
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterceptorApp

public InterceptorApp(java.lang.String key,
                      rice.p2p.scribe.ScribeClient client,
                      rice.p2p.commonapi.NodeHandle handle)
Constructor

Parameters:
key - String Interceptor id
client - ScribeClient Interceptor application
handle - NodeHandle Node handle where the interceptor application resides
Method Detail

getInterceptorId

public java.lang.String getInterceptorId()
Get interceptor id

Returns:
String Interceptor id

getApplication

public ScribeClient getApplication()
Get interceptor application

Returns:
ScribeClient Interceptor application

getApplicationNodeHandle

public rice.p2p.commonapi.NodeHandle getApplicationNodeHandle()
Get interceptor application's node handle

Returns:
NodeHandle Application's node handle

toString

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