Class ManagementServiceImpl
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl
-
- All Implemented Interfaces:
ActiveMQComponent,ManagementService,NotificationService
public class ManagementServiceImpl extends Object implements ManagementService
-
-
Constructor Summary
Constructors Constructor Description ManagementServiceImpl(MBeanServer mbeanServer, Configuration configuration)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
-
-
-
Constructor Detail
-
ManagementServiceImpl
public ManagementServiceImpl(MBeanServer mbeanServer, Configuration configuration)
-
-
Method Detail
-
getObjectNameBuilder
public ObjectNameBuilder getObjectNameBuilder()
- Specified by:
getObjectNameBuilderin interfaceManagementService
-
getMessageCounterManager
public MessageCounterManager getMessageCounterManager()
- Specified by:
getMessageCounterManagerin interfaceManagementService
-
setStorageManager
public void setStorageManager(StorageManager storageManager)
- Specified by:
setStorageManagerin interfaceManagementService
-
registerServer
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
- Specified by:
registerServerin interfaceManagementService- Throws:
Exception
-
unregisterServer
public void unregisterServer() throws Exception- Specified by:
unregisterServerin interfaceManagementService- Throws:
Exception
-
registerAddress
public void registerAddress(AddressInfo addressInfo) throws Exception
- Specified by:
registerAddressin interfaceManagementService- Throws:
Exception
-
registerAddressMeters
public void registerAddressMeters(AddressInfo addressInfo, AddressControl addressControl)
- Specified by:
registerAddressMetersin interfaceManagementService
-
unregisterAddress
public void unregisterAddress(SimpleString address) throws Exception
- Specified by:
unregisterAddressin interfaceManagementService- Throws:
Exception
-
registerQueue
public void registerQueue(Queue queue, AddressInfo addressInfo, StorageManager storageManager) throws Exception
- Throws:
Exception
-
registerQueue
public void registerQueue(Queue queue, SimpleString address, StorageManager storageManager) throws Exception
- Specified by:
registerQueuein interfaceManagementService- Throws:
Exception
-
unregisterQueue
public void unregisterQueue(SimpleString name, SimpleString address, RoutingType routingType) throws Exception
- Specified by:
unregisterQueuein interfaceManagementService- Throws:
Exception
-
registerDivert
public void registerDivert(Divert divert) throws Exception
- Specified by:
registerDivertin interfaceManagementService- Throws:
Exception
-
unregisterDivert
public void unregisterDivert(SimpleString name, SimpleString address) throws Exception
- Specified by:
unregisterDivertin interfaceManagementService- Throws:
Exception
-
registerAcceptor
public void registerAcceptor(Acceptor acceptor, TransportConfiguration configuration) throws Exception
- Specified by:
registerAcceptorin interfaceManagementService- Throws:
Exception
-
unregisterAcceptors
public void unregisterAcceptors()
- Specified by:
unregisterAcceptorsin interfaceManagementService
-
registerBroadcastGroup
public void registerBroadcastGroup(BroadcastGroup broadcastGroup, BroadcastGroupConfiguration configuration) throws Exception
- Specified by:
registerBroadcastGroupin interfaceManagementService- Throws:
Exception
-
unregisterBroadcastGroup
public void unregisterBroadcastGroup(String name) throws Exception
- Specified by:
unregisterBroadcastGroupin interfaceManagementService- Throws:
Exception
-
registerBridge
public void registerBridge(Bridge bridge) throws Exception
- Specified by:
registerBridgein interfaceManagementService- Throws:
Exception
-
unregisterBridge
public void unregisterBridge(String name) throws Exception
- Specified by:
unregisterBridgein interfaceManagementService- Throws:
Exception
-
registerCluster
public void registerCluster(ClusterConnection cluster, ClusterConnectionConfiguration configuration) throws Exception
- Specified by:
registerClusterin interfaceManagementService- Throws:
Exception
-
unregisterCluster
public void unregisterCluster(String name) throws Exception
- Specified by:
unregisterClusterin interfaceManagementService- Throws:
Exception
-
registerConnectionRouter
public void registerConnectionRouter(ConnectionRouter router) throws Exception
- Specified by:
registerConnectionRouterin interfaceManagementService- Throws:
Exception
-
unregisterConnectionRouter
public void unregisterConnectionRouter(String name) throws Exception
- Specified by:
unregisterConnectionRouterin interfaceManagementService- Throws:
Exception
-
registerHawtioSecurity
public void registerHawtioSecurity(ArtemisMBeanServerGuard mBeanServerGuard) throws Exception
- Specified by:
registerHawtioSecurityin interfaceManagementService- Throws:
Exception
-
unregisterHawtioSecurity
public void unregisterHawtioSecurity() throws Exception- Specified by:
unregisterHawtioSecurityin interfaceManagementService- Throws:
Exception
-
handleMessage
public ICoreMessage handleMessage(Message message) throws Exception
- Specified by:
handleMessagein interfaceManagementService- Throws:
Exception
-
getResource
public Object getResource(String resourceName)
- Specified by:
getResourcein interfaceManagementService
-
getResources
public Object[] getResources(Class<?> resourceType)
- Specified by:
getResourcesin interfaceManagementService
-
registerInJMX
public void registerInJMX(ObjectName objectName, Object managedResource) throws Exception
- Specified by:
registerInJMXin interfaceManagementService- Throws:
Exception
-
registerInRegistry
public void registerInRegistry(String resourceName, Object managedResource)
- Specified by:
registerInRegistryin interfaceManagementService
-
unregisterFromRegistry
public void unregisterFromRegistry(String resourceName)
- Specified by:
unregisterFromRegistryin interfaceManagementService
-
unregisterFromJMX
public void unregisterFromJMX(ObjectName objectName) throws MBeanRegistrationException, InstanceNotFoundException
- Specified by:
unregisterFromJMXin interfaceManagementService- Throws:
MBeanRegistrationExceptionInstanceNotFoundException
-
addNotificationListener
public void addNotificationListener(NotificationListener listener)
- Specified by:
addNotificationListenerin interfaceNotificationService
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener)
- Specified by:
removeNotificationListenerin interfaceNotificationService
-
getManagementAddress
public SimpleString getManagementAddress()
- Specified by:
getManagementAddressin interfaceManagementService
-
getManagementNotificationAddress
public SimpleString getManagementNotificationAddress()
- Specified by:
getManagementNotificationAddressin interfaceManagementService
-
start
public void start() throws Exception- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
stop
public void stop() throws Exception- Specified by:
stopin interfaceActiveMQComponent- Throws:
Exception
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceActiveMQComponent
-
sendNotification
public void sendNotification(Notification notification) throws Exception
- Specified by:
sendNotificationin interfaceNotificationService- Throws:
Exception
-
enableNotifications
public void enableNotifications(boolean enabled)
- Specified by:
enableNotificationsin interfaceNotificationService
-
getAttribute
public Object getAttribute(String resourceName, String attribute)
- Specified by:
getAttributein interfaceManagementService
-
invokeOperation
public Object invokeOperation(String resourceName, String operation, Object[] params) throws Exception
- Specified by:
invokeOperationin interfaceManagementService- Throws:
Exception
-
-