public class ClusterController extends Object implements ActiveMQComponent
Constructor and Description |
---|
ClusterController(ActiveMQServer server,
ScheduledExecutorService scheduledExecutor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asyncStop
public ClusterController(ActiveMQServer server, ScheduledExecutorService scheduledExecutor)
public void start() throws Exception
start
in interface ActiveMQComponent
Exception
public void stop() throws Exception
stop
in interface ActiveMQComponent
Exception
public boolean isStarted()
isStarted
in interface ActiveMQComponent
public QuorumManager getQuorumManager()
public void setDefaultClusterConnectionName(SimpleString defaultClusterConnection)
public void addClusterConnection(SimpleString name, DiscoveryGroupConfiguration dg, ClusterConnectionConfiguration config)
name
- the cluster connection namedg
- the discovery group to useconfig
- the cluster connection configpublic void addClusterConnection(SimpleString name, TransportConfiguration[] tcConfigs, ClusterConnectionConfiguration config)
name
- the cluster connection nametcConfigs
- the transport configurations to usepublic void addClusterTopologyListenerForReplication(ClusterTopologyListener listener)
listener
- public void addIncomingInterceptorForReplication(Interceptor interceptor)
interceptor
- public ClusterControl connectToNode(TransportConfiguration transportConfiguration) throws Exception
transportConfiguration
- the configuration of the node to connect to.Exception
public ClusterControl connectToNodeInReplicatedCluster(TransportConfiguration transportConfiguration) throws Exception
transportConfiguration
- the configuration of the node to connect to.Exception
public ClusterControl connectToNodeInCluster(ClientSessionFactoryInternal sf)
sf
- the session factorypublic long getRetryIntervalForReplicatedCluster()
public void awaitConnectionToReplicationCluster() throws InterruptedException
InterruptedException
public void addClusterChannelHandler(Channel channel, Acceptor acceptorUsed, CoreRemotingConnection remotingConnection, Activation activation)
channel
- the channel to set the handleracceptorUsed
- the acceptor used for connectionremotingConnection
- the connection itselfactivation
- public int getDefaultClusterSize()
public Topology getDefaultClusterTopology()
public SimpleString getNodeID()
public String getIdentity()
public void setReplicatedClusterName(String replicatedClusterName)
public Map<SimpleString,ServerLocatorInternal> getLocators()
public ServerLocator getReplicationLocator()
public ServerLocator getServerLocator(SimpleString name)
Copyright © 2021 JBoss by Red Hat. All rights reserved.