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 ManagementServicepublic MessageCounterManager getMessageCounterManager()
getMessageCounterManager in interface ManagementServicepublic void setStorageManager(StorageManager storageManager)
setStorageManager in interface ManagementServicepublic 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 ManagementServiceExceptionpublic void unregisterServer()
throws Exception
unregisterServer in interface ManagementServiceExceptionpublic void registerAddress(SimpleString address) throws Exception
registerAddress in interface ManagementServiceExceptionpublic void unregisterAddress(SimpleString address) throws Exception
unregisterAddress in interface ManagementServiceExceptionpublic void registerQueue(Queue queue, SimpleString address, StorageManager storageManager) throws Exception
registerQueue in interface ManagementServiceExceptionpublic void unregisterQueue(SimpleString name, SimpleString address) throws Exception
unregisterQueue in interface ManagementServiceExceptionpublic void registerDivert(Divert divert, DivertConfiguration config) throws Exception
registerDivert in interface ManagementServiceExceptionpublic void unregisterDivert(SimpleString name) throws Exception
unregisterDivert in interface ManagementServiceExceptionpublic void registerAcceptor(Acceptor acceptor, TransportConfiguration configuration) throws Exception
registerAcceptor in interface ManagementServiceExceptionpublic void unregisterAcceptors()
unregisterAcceptors in interface ManagementServicepublic void registerBroadcastGroup(BroadcastGroup broadcastGroup, BroadcastGroupConfiguration configuration) throws Exception
registerBroadcastGroup in interface ManagementServiceExceptionpublic void unregisterBroadcastGroup(String name) throws Exception
unregisterBroadcastGroup in interface ManagementServiceExceptionpublic void registerBridge(Bridge bridge, BridgeConfiguration configuration) throws Exception
registerBridge in interface ManagementServiceExceptionpublic void unregisterBridge(String name) throws Exception
unregisterBridge in interface ManagementServiceExceptionpublic void registerCluster(ClusterConnection cluster, ClusterConnectionConfiguration configuration) throws Exception
registerCluster in interface ManagementServiceExceptionpublic void unregisterCluster(String name) throws Exception
unregisterCluster in interface ManagementServiceExceptionpublic ServerMessage handleMessage(ServerMessage message) throws Exception
handleMessage in interface ManagementServiceExceptionpublic Object getResource(String resourceName)
getResource in interface ManagementServicepublic Object[] getResources(Class<?> resourceType)
getResources in interface ManagementServicepublic void registerInJMX(ObjectName objectName, Object managedResource) throws Exception
registerInJMX in interface ManagementServiceExceptionpublic void registerInRegistry(String resourceName, Object managedResource)
registerInRegistry in interface ManagementServicepublic void unregisterFromRegistry(String resourceName)
unregisterFromRegistry in interface ManagementServicepublic void unregisterFromJMX(ObjectName objectName) throws MBeanRegistrationException, InstanceNotFoundException
unregisterFromJMX in interface ManagementServiceMBeanRegistrationExceptionInstanceNotFoundExceptionpublic void addNotificationListener(NotificationListener listener)
addNotificationListener in interface NotificationServicepublic void removeNotificationListener(NotificationListener listener)
removeNotificationListener in interface NotificationServicepublic SimpleString getManagementAddress()
getManagementAddress in interface ManagementServicepublic SimpleString getManagementNotificationAddress()
getManagementNotificationAddress in interface ManagementServicepublic void start()
throws Exception
start in interface ActiveMQComponentExceptionpublic void stop()
throws Exception
stop in interface ActiveMQComponentExceptionpublic boolean isStarted()
isStarted in interface ActiveMQComponentpublic void sendNotification(Notification notification) throws Exception
NotificationServiceManagementHelper.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)propssendNotification in interface NotificationServiceExceptionManagementHelperpublic void enableNotifications(boolean enabled)
enableNotifications in interface NotificationServiceCopyright © 2018 JBoss by Red Hat. All rights reserved.