Class RemoteGroupingHandler
java.lang.Object
org.apache.activemq.artemis.core.server.group.impl.GroupHandlingAbstract
org.apache.activemq.artemis.core.server.group.impl.RemoteGroupingHandler
- All Implemented Interfaces:
ActiveMQComponent,GroupingHandler,NotificationListener
A remote Grouping handler.
This will use management notifications to communicate with the node that has the Local Grouping handler to make proposals.
-
Field Summary
Fields inherited from class org.apache.activemq.artemis.core.server.group.impl.GroupHandlingAbstract
address, executor, managementService -
Constructor Summary
ConstructorsConstructorDescriptionRemoteGroupingHandler(ManagementService managementService, SimpleString name, SimpleString address, long timeout, long groupTimeout) RemoteGroupingHandler(ExecutorFactory executorFactory, ManagementService managementService, SimpleString name, SimpleString address, long timeout, long groupTimeout) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroupBinding(GroupBinding groupBinding) voidgetName()getProposal(SimpleString fullID, boolean touchTime) booleanvoidonNotification(Notification notification) voidvoidremove(SimpleString groupid, SimpleString clusterName) voidremove(SimpleString groupid, SimpleString clusterName, int distance) voidvoidsendProposalResponse(Response response, int distance) voidstart()voidstop()Methods inherited from class org.apache.activemq.artemis.core.server.group.impl.GroupHandlingAbstract
addListener, fireUnproposed, forceRemove, sendUnproposalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
Constructor Details
-
RemoteGroupingHandler
public RemoteGroupingHandler(ExecutorFactory executorFactory, ManagementService managementService, SimpleString name, SimpleString address, long timeout, long groupTimeout) -
RemoteGroupingHandler
public RemoteGroupingHandler(ManagementService managementService, SimpleString name, SimpleString address, long timeout, long groupTimeout)
-
-
Method Details
-
getName
-
start
- Throws:
Exception
-
stop
- Throws:
Exception
-
isStarted
public boolean isStarted() -
resendPending
- Throws:
Exception
-
propose
- Throws:
Exception
-
awaitBindings
public void awaitBindings() -
getProposal
-
remove
- Throws:
Exception
-
remove
- Throws:
Exception
-
proposed
- Throws:
Exception
-
receive
- Throws:
Exception
-
sendProposalResponse
- Throws:
Exception
-
addGroupBinding
-
onNotification
-