public class ClusterManagerImpl extends Object implements ClusterManagerInternal
Constructor and Description |
---|
ClusterManagerImpl(ExecutorFactory executorFactory,
HornetQServer server,
PostOffice postOffice,
ScheduledExecutorService scheduledExecutor,
ManagementService managementService,
Configuration configuration,
UUID nodeUUID,
boolean backup,
boolean clustered) |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
void |
addClusterLocator(ServerLocatorInternal serverLocator) |
void |
announceBackup() |
void |
clear() |
void |
deploy() |
void |
deployBridge(BridgeConfiguration config,
boolean start) |
String |
describe() |
void |
destroyBridge(String name) |
void |
flushExecutor() |
Map<String,Bridge> |
getBridges() |
Set<BroadcastGroup> |
getBroadcastGroups() |
ClusterConnection |
getClusterConnection(String name) |
Set<ClusterConnection> |
getClusterConnections() |
ClusterConnection |
getDefaultConnection(TransportConfiguration acceptorConfig)
Return the default ClusterConnection to be used case it's not defined by the acceptor
|
String |
getNodeId() |
boolean |
isStarted() |
void |
removeClusterLocator(ServerLocatorInternal serverLocator) |
void |
start() |
void |
stop() |
String |
toString() |
public ClusterManagerImpl(ExecutorFactory executorFactory, HornetQServer server, PostOffice postOffice, ScheduledExecutorService scheduledExecutor, ManagementService managementService, Configuration configuration, UUID nodeUUID, boolean backup, boolean clustered)
public String describe()
describe
in interface ClusterManager
public ClusterConnection getDefaultConnection(TransportConfiguration acceptorConfig)
ClusterManager
getDefaultConnection
in interface ClusterManager
public String getNodeId()
getNodeId
in interface ClusterManagerInternal
public void deploy() throws Exception
deploy
in interface ClusterManager
Exception
public void start() throws Exception
start
in interface HornetQComponent
Exception
public void stop() throws Exception
stop
in interface HornetQComponent
Exception
public void flushExecutor()
flushExecutor
in interface ClusterManager
public boolean isStarted()
isStarted
in interface HornetQComponent
public Map<String,Bridge> getBridges()
getBridges
in interface ClusterManager
public Set<ClusterConnection> getClusterConnections()
getClusterConnections
in interface ClusterManager
public Set<BroadcastGroup> getBroadcastGroups()
getBroadcastGroups
in interface ClusterManager
public ClusterConnection getClusterConnection(String name)
getClusterConnection
in interface ClusterManager
public void activate()
activate
in interface ClusterManager
public void announceBackup() throws Exception
announceBackup
in interface ClusterManager
Exception
public void addClusterLocator(ServerLocatorInternal serverLocator)
addClusterLocator
in interface ClusterManagerInternal
public void removeClusterLocator(ServerLocatorInternal serverLocator)
removeClusterLocator
in interface ClusterManagerInternal
public void deployBridge(BridgeConfiguration config, boolean start) throws Exception
deployBridge
in interface ClusterManager
Exception
public void destroyBridge(String name) throws Exception
destroyBridge
in interface ClusterManager
Exception
public void clear()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.