Class GroupHandlingAbstract
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.group.impl.GroupHandlingAbstract
-
- All Implemented Interfaces:
ActiveMQComponent,GroupingHandler,NotificationListener
- Direct Known Subclasses:
LocalGroupingHandler,RemoteGroupingHandler
public abstract class GroupHandlingAbstract extends Object implements GroupingHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected SimpleStringaddressprotected Executorexecutorprotected ManagementServicemanagementService
-
Constructor Summary
Constructors Constructor Description GroupHandlingAbstract(Executor executor, ManagementService managementService, SimpleString address)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(UnproposalListener listener)protected voidfireUnproposed(SimpleString groupID)voidforceRemove(SimpleString groupid, SimpleString clusterName)this will force a removal of the group everywhere with an unproposal (dinstance=0).protected voidsendUnproposal(SimpleString groupid, SimpleString clusterName, int distance)-
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, isStarted, start, stop
-
Methods inherited from interface org.apache.activemq.artemis.core.server.group.GroupingHandler
addGroupBinding, awaitBindings, getName, getProposal, propose, proposed, receive, remove, remove, resendPending, sendProposalResponse
-
Methods inherited from interface org.apache.activemq.artemis.core.server.management.NotificationListener
onNotification
-
-
-
-
Field Detail
-
executor
protected final Executor executor
-
managementService
protected final ManagementService managementService
-
address
protected final SimpleString address
-
-
Constructor Detail
-
GroupHandlingAbstract
public GroupHandlingAbstract(Executor executor, ManagementService managementService, SimpleString address)
-
-
Method Detail
-
addListener
public void addListener(UnproposalListener listener)
- Specified by:
addListenerin interfaceGroupingHandler
-
fireUnproposed
protected void fireUnproposed(SimpleString groupID)
-
forceRemove
public void forceRemove(SimpleString groupid, SimpleString clusterName) throws Exception
Description copied from interface:GroupingHandlerthis will force a removal of the group everywhere with an unproposal (dinstance=0). This is for the case where a node goes missing- Specified by:
forceRemovein interfaceGroupingHandler- Throws:
Exception
-
sendUnproposal
protected void sendUnproposal(SimpleString groupid, SimpleString clusterName, int distance)
-
-