dermi.session
Interface DermiApplicationListener

All Superinterfaces:
rice.p2p.scribe.ScribeClient
All Known Implementing Classes:
NotificationParser

public interface DermiApplicationListener
extends rice.p2p.scribe.ScribeClient

Interface to be implemented by applications that must be notified

Author:
Carles Pairot

Method Summary
 rice.p2p.scribe.ScribeContent interceptAnycast(rice.p2p.scribe.Topic tpc, rice.p2p.scribe.ScribeContent cnt)
          Method required for manycalls, in case the contents of the message must be changed on-the-fly
 void receiveInterceptorMessage(java.util.Hashtable msg, java.util.ArrayList interceptors)
          Upcall when an interceptor message is received
 void setConnection(DermiConnection conn)
          Sets the specified connection to this application
 
Methods inherited from interface rice.p2p.scribe.ScribeClient
anycast, childAdded, childRemoved, deliver, subscribeFailed
 

Method Detail

setConnection

void setConnection(DermiConnection conn)
Sets the specified connection to this application

Parameters:
conn - Connection

receiveInterceptorMessage

void receiveInterceptorMessage(java.util.Hashtable msg,
                               java.util.ArrayList interceptors)
Upcall when an interceptor message is received


interceptAnycast

rice.p2p.scribe.ScribeContent interceptAnycast(rice.p2p.scribe.Topic tpc,
                                               rice.p2p.scribe.ScribeContent cnt)
Method required for manycalls, in case the contents of the message must be changed on-the-fly

Parameters:
tpc - Topic Group's topic
cnt - ScribeContent Original content
Returns:
ScribeContent Modified content