org.kth.dks
Interface DKSMCastDHTInterface

All Superinterfaces:
DKSDHTInterface, DKSInterface
All Known Implementing Classes:
DKSMCastDHTImpl

public interface DKSMCastDHTInterface
extends DKSDHTInterface

This interface is an extension to the DKSDHTInterface with support for creating multicast groups


Method Summary
 boolean addMsgHandler(java.lang.String messageClassZ, java.lang.String handlerClassZ, java.lang.String handlerMethodZ, java.lang.Object handlerObject)
          Install a message message handler, @see ObjectAdapter.addMsgHandler()
 DKSMCastDHTInterface createGroup(long gid, DKSDHTCallback cb)
          Create a new multicast group with a specific group id.
 DKSRef[] getGroupInfo(long gid)
          Return the members of the group.
 DKSMCastDHTInterface joinGroup(long gid, DKSDHTCallback cb)
          Join an existing multicast group with a specific group id.
 
Methods inherited from interface org.kth.dks.DKSDHTInterface
addToBinding, broadcast, changeBinding, lookupBinding, lookupBinding, removeFromBinding
 
Methods inherited from interface org.kth.dks.DKSInterface
addMsgHandler, broadcastRestricted, create, findResponsible, getDKSRef, getDKSURL, join, leave, logLevel, route, routeAsync, routeAsyncFrom, send, unregisterNode
 

Method Detail

createGroup

DKSMCastDHTInterface createGroup(long gid,
                                 DKSDHTCallback cb)
                                 throws DKSIdentifierAlreadyTaken,
                                        DKSTooManyRestartJoins
Create a new multicast group with a specific group id. Automatically become a member of the group if the group does not exists. If the group already exists DKSNodeAlreadyRegistered will be thrown. Events in the newly created group will be delivered to the callback.

Throws:
DKSIdentifierAlreadyTaken
DKSTooManyRestartJoins

joinGroup

DKSMCastDHTInterface joinGroup(long gid,
                               DKSDHTCallback cb)
                               throws DKSMCastNoSouchGroup,
                                      DKSIdentifierAlreadyTaken,
                                      DKSRefNoResponse
Join an existing multicast group with a specific group id. If the group does not exist DKSMCastNoSouchGroup is thrown. Events in the newly created group will be delivered to the callback.

Throws:
DKSMCastNoSouchGroup
DKSIdentifierAlreadyTaken
DKSRefNoResponse

getGroupInfo

DKSRef[] getGroupInfo(long gid)
                      throws DKSMCastNoSouchGroup
Return the members of the group.

Throws:
DKSMCastNoSouchGroup

addMsgHandler

boolean addMsgHandler(java.lang.String messageClassZ,
                      java.lang.String handlerClassZ,
                      java.lang.String handlerMethodZ,
                      java.lang.Object handlerObject)
Install a message message handler, @see ObjectAdapter.addMsgHandler()



Copyright © 2010. All Rights Reserved.