Class ManagementServiceImpl
java.lang.Object
org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl
- All Implemented Interfaces:
ActiveMQComponent,ManagementService,NotificationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotificationListener(NotificationListener listener) voidenableNotifications(boolean enabled) getAttribute(String resourceName, String attribute, SecurityAuth auth) getResource(String resourceName) Object[]getResources(Class<?> resourceType) handleMessage(SecurityAuth auth, Message message) invokeOperation(String resourceName, String operation, Object[] params, SecurityAuth auth) booleanprotected CheckTypepermissionForInvoke(String method) voidregisterAcceptor(Acceptor acceptor, TransportConfiguration configuration) voidregisterAddress(AddressInfo addressInfo) voidregisterAddressMeters(AddressInfo addressInfo, AddressControl addressControl) voidregisterBridge(Bridge bridge) voidregisterBroadcastGroup(BroadcastGroup broadcastGroup, BroadcastGroupConfiguration configuration) voidregisterBrokerConnection(BrokerConnection brokerConnection) voidregisterCluster(ClusterConnection cluster, ClusterConnectionConfiguration configuration) voidvoidregisterDivert(Divert divert) voidvoidregisterInJMX(ObjectName objectName, Object managedResource) voidregisterInRegistry(String resourceName, Object managedResource) voidregisterQueue(Queue queue, SimpleString address, StorageManager storageManager) voidregisterRemoteBrokerConnection(RemoteBrokerConnection brokerConnection) 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) voidprotected voidsecurityCheck(String controlName, CheckType permission, SecurityAuth auth) voidsendNotification(Notification notification) the message corresponding to a notification will always contain the properties: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) in addition to the properties defined inpropsvoidsetStorageManager(StorageManager storageManager) voidstart()voidstop()voidunregisterAcceptor(String name) voidvoidunregisterAddress(SimpleString address) voidunregisterBridge(String name) voidvoidvoidunregisterCluster(String name) voidvoidunregisterDivert(SimpleString name, SimpleString address) voidunregisterFromJMX(ObjectName objectName) voidunregisterFromRegistry(String resourceName) voidvoidunregisterQueue(SimpleString name, SimpleString address, RoutingType routingType) voidunregisterRemoteBrokerConnection(String nodeId, String name) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
Constructor Details
-
ManagementServiceImpl
-
-
Method Details
-
getObjectNameBuilder
- Specified by:
getObjectNameBuilderin interfaceManagementService
-
getMessageCounterManager
- Specified by:
getMessageCounterManagerin interfaceManagementService
-
setStorageManager
- 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
- Specified by:
unregisterServerin interfaceManagementService- Throws:
Exception
-
registerAddress
- Specified by:
registerAddressin interfaceManagementService- Throws:
Exception
-
registerAddressMeters
- Specified by:
registerAddressMetersin interfaceManagementService
-
unregisterAddress
- Specified by:
unregisterAddressin interfaceManagementService- 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
- Specified by:
registerDivertin interfaceManagementService- Throws:
Exception
-
unregisterDivert
- 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
-
unregisterAcceptor
- Throws:
Exception
-
registerBroadcastGroup
public void registerBroadcastGroup(BroadcastGroup broadcastGroup, BroadcastGroupConfiguration configuration) throws Exception - Specified by:
registerBroadcastGroupin interfaceManagementService- Throws:
Exception
-
unregisterBroadcastGroup
- Specified by:
unregisterBroadcastGroupin interfaceManagementService- Throws:
Exception
-
registerBrokerConnection
- Specified by:
registerBrokerConnectionin interfaceManagementService- Throws:
Exception
-
unregisterBrokerConnection
- Specified by:
unregisterBrokerConnectionin interfaceManagementService- Throws:
Exception
-
registerRemoteBrokerConnection
public void registerRemoteBrokerConnection(RemoteBrokerConnection brokerConnection) throws Exception - Specified by:
registerRemoteBrokerConnectionin interfaceManagementService- Throws:
Exception
-
unregisterRemoteBrokerConnection
- Specified by:
unregisterRemoteBrokerConnectionin interfaceManagementService- Throws:
Exception
-
registerBridge
- Specified by:
registerBridgein interfaceManagementService- Throws:
Exception
-
unregisterBridge
- Specified by:
unregisterBridgein interfaceManagementService- Throws:
Exception
-
registerCluster
public void registerCluster(ClusterConnection cluster, ClusterConnectionConfiguration configuration) throws Exception - Specified by:
registerClusterin interfaceManagementService- Throws:
Exception
-
unregisterCluster
- Specified by:
unregisterClusterin interfaceManagementService- Throws:
Exception
-
registerConnectionRouter
- Specified by:
registerConnectionRouterin interfaceManagementService- Throws:
Exception
-
unregisterConnectionRouter
- Specified by:
unregisterConnectionRouterin interfaceManagementService- Throws:
Exception
-
registerHawtioSecurity
- Specified by:
registerHawtioSecurityin interfaceManagementService- Throws:
Exception
-
unregisterHawtioSecurity
- Specified by:
unregisterHawtioSecurityin interfaceManagementService- Throws:
Exception
-
handleMessage
- Specified by:
handleMessagein interfaceManagementService- Throws:
Exception
-
securityCheck
protected void securityCheck(String controlName, CheckType permission, SecurityAuth auth) throws Exception - Throws:
Exception
-
permissionForInvoke
-
getResource
- Specified by:
getResourcein interfaceManagementService
-
getResources
- Specified by:
getResourcesin interfaceManagementService
-
registerInJMX
- Specified by:
registerInJMXin interfaceManagementService- Throws:
Exception
-
unregisterFromJMX
public void unregisterFromJMX(ObjectName objectName) throws MBeanRegistrationException, InstanceNotFoundException - Specified by:
unregisterFromJMXin interfaceManagementService- Throws:
MBeanRegistrationExceptionInstanceNotFoundException
-
registerInRegistry
- Specified by:
registerInRegistryin interfaceManagementService
-
unregisterFromRegistry
- Specified by:
unregisterFromRegistryin interfaceManagementService
-
addNotificationListener
- Specified by:
addNotificationListenerin interfaceNotificationService
-
removeNotificationListener
- Specified by:
removeNotificationListenerin interfaceNotificationService
-
getManagementAddress
- Specified by:
getManagementAddressin interfaceManagementService
-
getManagementNotificationAddress
- Specified by:
getManagementNotificationAddressin interfaceManagementService
-
start
- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
stop
- Specified by:
stopin interfaceActiveMQComponent- Throws:
Exception
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceActiveMQComponent
-
sendNotification
Description copied from interface:NotificationServicethe message corresponding to a notification will always contain the properties: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- Specified by:
sendNotificationin interfaceNotificationService- Throws:
Exception- See Also:
-
enableNotifications
public void enableNotifications(boolean enabled) - Specified by:
enableNotificationsin interfaceNotificationService
-
getAttribute
- Specified by:
getAttributein interfaceManagementService
-
invokeOperation
public Object invokeOperation(String resourceName, String operation, Object[] params, SecurityAuth auth) throws Exception - Specified by:
invokeOperationin interfaceManagementService- Throws:
Exception
-