public final class RemoteGroupingHandler extends Object implements GroupingHandler
This will use management notifications to communicate with the node that has the Local Grouping handler to make proposals.
| Constructor and Description |
|---|
RemoteGroupingHandler(ManagementService managementService,
SimpleString name,
SimpleString address,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupBinding(GroupBinding groupBinding) |
SimpleString |
getName() |
Response |
getProposal(SimpleString fullID) |
void |
onNotification(Notification notification) |
Response |
propose(Proposal proposal) |
void |
proposed(Response response) |
Response |
receive(Proposal proposal,
int distance) |
void |
send(Response response,
int distance) |
public RemoteGroupingHandler(ManagementService managementService, SimpleString name, SimpleString address, long timeout)
public SimpleString getName()
getName in interface GroupingHandlerpublic Response propose(Proposal proposal) throws Exception
propose in interface GroupingHandlerExceptionpublic Response getProposal(SimpleString fullID)
getProposal in interface GroupingHandlerpublic void proposed(Response response) throws Exception
proposed in interface GroupingHandlerExceptionpublic Response receive(Proposal proposal, int distance) throws Exception
receive in interface GroupingHandlerExceptionpublic void send(Response response, int distance) throws Exception
send in interface GroupingHandlerExceptionpublic void addGroupBinding(GroupBinding groupBinding)
addGroupBinding in interface GroupingHandlerpublic void onNotification(Notification notification)
onNotification in interface NotificationListenerCopyright © 2013 JBoss, a division of Red Hat. All rights reserved.