|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectp2ps.imp.group.GroupServiceImp
Implementation of the GroupService interface.
| Constructor Summary | |
GroupServiceImp(Peer peer)
|
|
| Method Summary | |
void |
dataMessageReceived(DataMessageEvent event)
Called when the endpoint receives a data message |
AuthorizationMechanism |
getAuthorizationMechanism(java.lang.String type)
|
java.lang.String[] |
getAuthorizationTypes()
|
GroupAdvertisement |
getGroupAdvertisement()
|
java.lang.String[] |
getGroupIDs()
|
void |
init()
Initializes the group service |
void |
joinGroup(GroupAdvertisement groupad,
Peer parent)
Join the group specified in the advertisement. |
void |
registerAuthorizationMechanism(java.lang.String authtype,
AuthorizationMechanism authmech)
Registers an authorization mechanism for the specified authorization type |
void |
unregisterAuthorizationMechanism(java.lang.String authtype)
Unregisters the authorization mechanism for the specified authorization type |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GroupServiceImp(Peer peer)
| Method Detail |
public void joinGroup(GroupAdvertisement groupad,
Peer parent)
throws UnknownAuthorizationMechanismException,
AuthorizationException,
java.io.IOException
joinGroup in interface GroupServicegroupad - the group advertisementparent - the parent of the group peer (if known)
UnknownAuthorizationMechanismException
AuthorizationException
java.io.IOException
public void init()
throws InitializationException,
java.io.IOException
init in interface GroupServiceInitializationException
java.io.IOExceptionpublic java.lang.String[] getGroupIDs()
getGroupIDs in interface GroupServicepublic GroupAdvertisement getGroupAdvertisement()
getGroupAdvertisement in interface GroupService
public void registerAuthorizationMechanism(java.lang.String authtype,
AuthorizationMechanism authmech)
registerAuthorizationMechanism in interface GroupServicepublic void unregisterAuthorizationMechanism(java.lang.String authtype)
unregisterAuthorizationMechanism in interface GroupServicepublic AuthorizationMechanism getAuthorizationMechanism(java.lang.String type)
getAuthorizationMechanism in interface GroupServicepublic java.lang.String[] getAuthorizationTypes()
getAuthorizationTypes in interface GroupServicepublic void dataMessageReceived(DataMessageEvent event)
dataMessageReceived in interface EndpointMessageListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||