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
public final class RemoteGroupingHandler extends GroupHandlingAbstract
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
Constructors Constructor Description RemoteGroupingHandler(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGroupBinding(GroupBinding groupBinding)voidawaitBindings()SimpleStringgetName()ResponsegetProposal(SimpleString fullID, boolean touchTime)booleanisStarted()voidonNotification(Notification notification)Responsepropose(Proposal proposal)voidproposed(Response response)Responsereceive(Proposal proposal, int distance)voidremove(SimpleString groupid, SimpleString clusterName)voidremove(SimpleString groupid, SimpleString clusterName, int distance)voidresendPending()voidsendProposalResponse(Response response, int distance)voidstart()voidstop()-
Methods inherited from class org.apache.activemq.artemis.core.server.group.impl.GroupHandlingAbstract
addListener, fireUnproposed, forceRemove, sendUnproposal
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
-
-
-
Constructor Detail
-
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 Detail
-
getName
public SimpleString getName()
-
isStarted
public boolean isStarted()
-
awaitBindings
public void awaitBindings()
-
getProposal
public Response getProposal(SimpleString fullID, boolean touchTime)
-
remove
public void remove(SimpleString groupid, SimpleString clusterName) throws Exception
- Throws:
Exception
-
remove
public void remove(SimpleString groupid, SimpleString clusterName, int distance) throws Exception
- Throws:
Exception
-
receive
public Response receive(Proposal proposal, int distance) throws Exception
- Throws:
Exception
-
sendProposalResponse
public void sendProposalResponse(Response response, int distance) throws Exception
- Throws:
Exception
-
addGroupBinding
public void addGroupBinding(GroupBinding groupBinding)
-
onNotification
public void onNotification(Notification notification)
-
-