public class ManagementServiceImpl extends Object implements ManagementService
Constructor and Description |
---|
ManagementServiceImpl(MBeanServer mbeanServer,
Configuration configuration) |
public ManagementServiceImpl(MBeanServer mbeanServer, Configuration configuration)
public ObjectNameBuilder getObjectNameBuilder()
getObjectNameBuilder
in interface ManagementService
public MessageCounterManager getMessageCounterManager()
getMessageCounterManager
in interface ManagementService
public void setStorageManager(StorageManager storageManager)
setStorageManager
in interface ManagementService
public ActiveMQServerControlImpl registerServer(PostOffice postOffice, SecurityStore securityStore, StorageManager storageManager1, Configuration configuration, HierarchicalRepository<AddressSettings> addressSettingsRepository, HierarchicalRepository<Set<Role>> securityRepository, ResourceManager resourceManager, RemotingService remotingService, ActiveMQServer messagingServer, QueueFactory queueFactory, ScheduledExecutorService scheduledThreadPool, PagingManager pagingManager, boolean backup) throws Exception
registerServer
in interface ManagementService
Exception
public void unregisterServer() throws Exception
unregisterServer
in interface ManagementService
Exception
public void registerAddress(SimpleString address) throws Exception
registerAddress
in interface ManagementService
Exception
public void unregisterAddress(SimpleString address) throws Exception
unregisterAddress
in interface ManagementService
Exception
public void registerQueue(Queue queue, SimpleString address, StorageManager storageManager) throws Exception
registerQueue
in interface ManagementService
Exception
public void unregisterQueue(SimpleString name, SimpleString address) throws Exception
unregisterQueue
in interface ManagementService
Exception
public void registerDivert(Divert divert, DivertConfiguration config) throws Exception
registerDivert
in interface ManagementService
Exception
public void unregisterDivert(SimpleString name) throws Exception
unregisterDivert
in interface ManagementService
Exception
public void registerAcceptor(Acceptor acceptor, TransportConfiguration configuration) throws Exception
registerAcceptor
in interface ManagementService
Exception
public void unregisterAcceptors()
unregisterAcceptors
in interface ManagementService
public void registerBroadcastGroup(BroadcastGroup broadcastGroup, BroadcastGroupConfiguration configuration) throws Exception
registerBroadcastGroup
in interface ManagementService
Exception
public void unregisterBroadcastGroup(String name) throws Exception
unregisterBroadcastGroup
in interface ManagementService
Exception
public void registerBridge(Bridge bridge, BridgeConfiguration configuration) throws Exception
registerBridge
in interface ManagementService
Exception
public void unregisterBridge(String name) throws Exception
unregisterBridge
in interface ManagementService
Exception
public void registerCluster(ClusterConnection cluster, ClusterConnectionConfiguration configuration) throws Exception
registerCluster
in interface ManagementService
Exception
public void unregisterCluster(String name) throws Exception
unregisterCluster
in interface ManagementService
Exception
public ServerMessage handleMessage(ServerMessage message) throws Exception
handleMessage
in interface ManagementService
Exception
public Object getResource(String resourceName)
getResource
in interface ManagementService
public Object[] getResources(Class<?> resourceType)
getResources
in interface ManagementService
public void registerInJMX(ObjectName objectName, Object managedResource) throws Exception
registerInJMX
in interface ManagementService
Exception
public void registerInRegistry(String resourceName, Object managedResource)
registerInRegistry
in interface ManagementService
public void unregisterFromRegistry(String resourceName)
unregisterFromRegistry
in interface ManagementService
public void unregisterFromJMX(ObjectName objectName) throws MBeanRegistrationException, InstanceNotFoundException
unregisterFromJMX
in interface ManagementService
MBeanRegistrationException
InstanceNotFoundException
public void addNotificationListener(NotificationListener listener)
addNotificationListener
in interface NotificationService
public void removeNotificationListener(NotificationListener listener)
removeNotificationListener
in interface NotificationService
public SimpleString getManagementAddress()
getManagementAddress
in interface ManagementService
public SimpleString getManagementNotificationAddress()
getManagementNotificationAddress
in interface ManagementService
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 void sendNotification(Notification notification) throws Exception
NotificationService
ManagementHelper.HDR_NOTIFICATION_TYPE
- the type of notification (SimpleString)ManagementHelper.HDR_NOTIFICATION_MESSAGE
- a message contextual to the notification (SimpleString)ManagementHelper.HDR_NOTIFICATION_TIMESTAMP
- the timestamp when the notification occurred (long)props
sendNotification
in interface NotificationService
Exception
ManagementHelper
public void enableNotifications(boolean enabled)
enableNotifications
in interface NotificationService
Copyright © 2017 JBoss by Red Hat. All rights reserved.