public final class LocalGroupingHandler extends Object implements GroupingHandler
| Constructor and Description |
|---|
LocalGroupingHandler(ExecutorFactory executorFactory,
ScheduledExecutorService scheduledExecutor,
ManagementService managementService,
SimpleString name,
SimpleString address,
StorageManager storageManager,
long timeout,
long groupTimeout,
long reaperPeriod) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupBinding(GroupBinding groupBinding) |
void |
awaitBindings() |
SimpleString |
getName() |
Response |
getProposal(SimpleString fullID) |
boolean |
isStarted() |
void |
onNotification(Notification notification) |
Response |
propose(Proposal proposal) |
void |
proposed(Response response) |
Response |
receive(Proposal proposal,
int distance) |
void |
remove(SimpleString groupid,
SimpleString clusterName,
int distance) |
void |
send(Response response,
int distance) |
void |
start() |
void |
stop() |
public LocalGroupingHandler(ExecutorFactory executorFactory, ScheduledExecutorService scheduledExecutor, ManagementService managementService, SimpleString name, SimpleString address, StorageManager storageManager, long timeout, long groupTimeout, long reaperPeriod)
public SimpleString getName()
getName in interface GroupingHandlerpublic Response propose(Proposal proposal) throws Exception
propose in interface GroupingHandlerExceptionpublic void proposed(Response response) throws Exception
proposed in interface GroupingHandlerExceptionpublic void remove(SimpleString groupid, SimpleString clusterName, int distance)
remove in interface GroupingHandlerpublic void send(Response response, int distance) throws Exception
send in interface GroupingHandlerExceptionpublic Response receive(Proposal proposal, int distance) throws Exception
receive in interface GroupingHandlerExceptionpublic void addGroupBinding(GroupBinding groupBinding)
addGroupBinding in interface GroupingHandlerpublic Response getProposal(SimpleString fullID)
getProposal in interface GroupingHandlerpublic void awaitBindings()
throws Exception
awaitBindings in interface GroupingHandlerExceptionpublic void onNotification(Notification notification)
onNotification in interface NotificationListenerpublic void start()
throws Exception
start in interface HornetQComponentExceptionpublic void stop()
throws Exception
stop in interface HornetQComponentExceptionpublic boolean isStarted()
isStarted in interface HornetQComponentCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.