Class ClusterPool
java.lang.Object
org.apache.activemq.artemis.core.server.routing.pools.AbstractPool
org.apache.activemq.artemis.core.server.routing.pools.ClusterPool
- All Implemented Interfaces:
ClusterTopologyListener,ActiveMQComponent,Pool
-
Constructor Summary
ConstructorsConstructorDescriptionClusterPool(TargetFactory targetFactory, ScheduledExecutorService scheduledExecutor, int checkPeriod, ClusterConnection clusterConnection) -
Method Summary
Methods inherited from class org.apache.activemq.artemis.core.server.routing.pools.AbstractPool
addTarget, addTarget, addTargetProbe, getAllTargets, getCheckPeriod, getPassword, getQuorumSize, getQuorumTimeout, getReadyTarget, getTarget, getTargetProbes, getTargets, getUsername, isStarted, isTargetReady, removeTarget, removeTargetProbe, setPassword, setQuorumSize, setQuorumTimeout, setUsernameMethods 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
-
ClusterPool
public ClusterPool(TargetFactory targetFactory, ScheduledExecutorService scheduledExecutor, int checkPeriod, ClusterConnection clusterConnection)
-
-
Method Details
-
start
- Specified by:
startin interfaceActiveMQComponent- Overrides:
startin classAbstractPool- Throws:
Exception
-
stop
- Specified by:
stopin interfaceActiveMQComponent- Overrides:
stopin classAbstractPool- Throws:
Exception
-
nodeUP
Description copied from interface:ClusterTopologyListenerTriggered when a node joins the cluster.- Specified by:
nodeUPin interfaceClusterTopologyListenerlast- if the whole cluster topology is being transmitted (after adding the listener to the cluster connection) this parameter will betruefor the last topology member.
-
nodeDown
Description copied from interface:ClusterTopologyListenerTriggered when a node leaves the cluster.- Specified by:
nodeDownin interfaceClusterTopologyListenernodeID- the id of the node leaving the cluster
-