easypastry.cast
Interface CastService

All Known Implementing Classes:
CastHandler

public interface CastService


Method Summary
 void addDeliverListener(java.lang.String id, CastListener dsl)
          Listeners & Filters
 void addForwardFilter(java.lang.String id, java.lang.String name, CastFilter dsf)
           
 void close()
           
 java.util.Collection<rice.p2p.commonapi.NodeHandle> getChildren(java.lang.String subject)
           
 java.util.Collection<CastFilter> getForwardFilters(java.lang.String id)
           
 rice.p2p.commonapi.NodeHandle getLocalNodeHandle()
           
 java.util.Collection<rice.p2p.commonapi.NodeHandle> getNeighbours(int num, boolean ordered)
           
 rice.p2p.commonapi.NodeHandle getParent(java.lang.String subject)
           
 rice.p2p.commonapi.IdRange getRange(rice.p2p.commonapi.NodeHandle handle, int rank, rice.p2p.commonapi.Id lkey)
           
 java.util.Collection<rice.p2p.commonapi.NodeHandle> getReplicaSet(rice.p2p.commonapi.Id id, int num)
           
 boolean isRoot(java.lang.String subject)
          Some passthrough accessors
 void removeDeliverListener(java.lang.String id)
           
 void removeForwardFiter(java.lang.String id, java.lang.String name)
           
 void sendAnycast(java.lang.String subject, CastContent content)
          Sends an anycast message.
 void sendDirect(rice.p2p.commonapi.NodeHandle destNH, CastContent content)
          Sends a direct message.
 void sendHopped(rice.p2p.commonapi.Id key, CastContent content)
          Sends a hopped message.
 void sendManycast(java.lang.String subject, CastContent content, int num)
          Sends a manycast message.
 void sendMulticast(java.lang.String subject, CastContent content)
          Sends a multicast message.
 void subscribe(java.lang.String subject)
          Subscribes to id.
 void unsubscribe(java.lang.String subject)
          Unsubscribes to id.
 

Method Detail

close

void close()

subscribe

void subscribe(java.lang.String subject)
Subscribes to id.


unsubscribe

void unsubscribe(java.lang.String subject)
Unsubscribes to id.


sendDirect

void sendDirect(rice.p2p.commonapi.NodeHandle destNH,
                CastContent content)
Sends a direct message.


sendHopped

void sendHopped(rice.p2p.commonapi.Id key,
                CastContent content)
Sends a hopped message.


sendAnycast

void sendAnycast(java.lang.String subject,
                 CastContent content)
Sends an anycast message.


sendManycast

void sendManycast(java.lang.String subject,
                  CastContent content,
                  int num)
Sends a manycast message.


sendMulticast

void sendMulticast(java.lang.String subject,
                   CastContent content)
Sends a multicast message.


addDeliverListener

void addDeliverListener(java.lang.String id,
                        CastListener dsl)
Listeners & Filters


removeDeliverListener

void removeDeliverListener(java.lang.String id)

addForwardFilter

void addForwardFilter(java.lang.String id,
                      java.lang.String name,
                      CastFilter dsf)

removeForwardFiter

void removeForwardFiter(java.lang.String id,
                        java.lang.String name)

getForwardFilters

java.util.Collection<CastFilter> getForwardFilters(java.lang.String id)

isRoot

boolean isRoot(java.lang.String subject)
Some passthrough accessors


getParent

rice.p2p.commonapi.NodeHandle getParent(java.lang.String subject)

getChildren

java.util.Collection<rice.p2p.commonapi.NodeHandle> getChildren(java.lang.String subject)

getLocalNodeHandle

rice.p2p.commonapi.NodeHandle getLocalNodeHandle()

getNeighbours

java.util.Collection<rice.p2p.commonapi.NodeHandle> getNeighbours(int num,
                                                                  boolean ordered)

getReplicaSet

java.util.Collection<rice.p2p.commonapi.NodeHandle> getReplicaSet(rice.p2p.commonapi.Id id,
                                                                  int num)

getRange

rice.p2p.commonapi.IdRange getRange(rice.p2p.commonapi.NodeHandle handle,
                                    int rank,
                                    rice.p2p.commonapi.Id lkey)