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 ClusterManagerpublic ClusterConnection getDefaultConnection(TransportConfiguration acceptorConfig)
ClusterManagergetDefaultConnection in interface ClusterManagerpublic String getNodeId()
getNodeId in interface ClusterManagerInternalpublic void deploy()
throws Exception
deploy in interface ClusterManagerExceptionpublic void start()
throws Exception
start in interface HornetQComponentExceptionpublic void stop()
throws Exception
stop in interface HornetQComponentExceptionpublic void flushExecutor()
flushExecutor in interface ClusterManagerpublic boolean isStarted()
isStarted in interface HornetQComponentpublic Map<String,Bridge> getBridges()
getBridges in interface ClusterManagerpublic Set<ClusterConnection> getClusterConnections()
getClusterConnections in interface ClusterManagerpublic Set<BroadcastGroup> getBroadcastGroups()
getBroadcastGroups in interface ClusterManagerpublic ClusterConnection getClusterConnection(String name)
getClusterConnection in interface ClusterManagerpublic void activate()
activate in interface ClusterManagerpublic void announceBackup()
throws Exception
announceBackup in interface ClusterManagerExceptionpublic void addClusterLocator(ServerLocatorInternal serverLocator)
addClusterLocator in interface ClusterManagerInternalpublic void removeClusterLocator(ServerLocatorInternal serverLocator)
removeClusterLocator in interface ClusterManagerInternalpublic void deployBridge(BridgeConfiguration config, boolean start) throws Exception
deployBridge in interface ClusterManagerExceptionpublic void destroyBridge(String name) throws Exception
destroyBridge in interface ClusterManagerExceptionpublic void clear()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.