org.jboss.messaging.core.management.impl
Class ManagementServiceImpl

java.lang.Object
  extended by org.jboss.messaging.core.management.impl.ManagementServiceImpl
All Implemented Interfaces:
ManagementService, NotificationService, MessagingComponent

public class ManagementServiceImpl
extends java.lang.Object
implements ManagementService


Constructor Summary
ManagementServiceImpl(javax.management.MBeanServer mbeanServer, Configuration configuration, int managementConnectorID)
           
 
Method Summary
 void addNotificationListener(NotificationListener listener)
           
 void enableNotifications(boolean enabled)
           
 java.lang.Object getAttribute(java.lang.String resourceName, java.lang.String attribute)
           
 java.lang.String getClusterPassword()
           
 java.lang.String getClusterUser()
           
 SimpleString getManagementAddress()
           
 SimpleString getManagementNotificationAddress()
           
 MessageCounterManager getMessageCounterManager()
           
 ReplicationOperationInvoker getReplicationOperationInvoker()
           
 java.lang.Object getResource(java.lang.String resourceName)
           
 ServerMessage handleMessage(ServerMessage message)
           
 boolean isStarted()
           
 void registerAcceptor(Acceptor acceptor, TransportConfiguration configuration)
           
 void registerAddress(SimpleString address)
           
 void registerBridge(Bridge bridge, BridgeConfiguration configuration)
           
 void registerBroadcastGroup(BroadcastGroup broadcastGroup, BroadcastGroupConfiguration configuration)
           
 void registerCluster(ClusterConnection cluster, ClusterConnectionConfiguration configuration)
           
 void registerDiscoveryGroup(DiscoveryGroup discoveryGroup, DiscoveryGroupConfiguration configuration)
           
 void registerDivert(Divert divert, DivertConfiguration config)
           
 void registerInJMX(javax.management.ObjectName objectName, java.lang.Object managedResource)
           
 void registerInRegistry(java.lang.String resourceName, java.lang.Object managedResource)
           
 void registerQueue(Queue queue, SimpleString address, StorageManager storageManager)
           
 MessagingServerControlImpl registerServer(PostOffice postOffice, StorageManager storageManager, Configuration configuration, HierarchicalRepository<AddressSettings> addressSettingsRepository, HierarchicalRepository<java.util.Set<Role>> securityRepository, ResourceManager resourceManager, RemotingService remotingService, MessagingServer messagingServer, QueueFactory queueFactory, java.util.concurrent.ScheduledExecutorService scheduledThreadPool, boolean backup)
           
 void removeNotificationListener(NotificationListener listener)
           
 void sendNotification(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 occured (long) in addition to the properties defined in props
 void start()
           
 void stop()
           
 void unregisterAcceptor(java.lang.String name)
           
 void unregisterAddress(SimpleString address)
           
 void unregisterBridge(java.lang.String name)
           
 void unregisterBroadcastGroup(java.lang.String name)
           
 void unregisterCluster(java.lang.String name)
           
 void unregisterDiscoveryGroup(java.lang.String name)
           
 void unregisterDivert(SimpleString name)
           
 void unregisterFromJMX(javax.management.ObjectName objectName)
           
 void unregisterFromRegistry(java.lang.String resourceName)
           
 void unregisterQueue(SimpleString name, SimpleString address)
           
 void unregisterServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagementServiceImpl

public ManagementServiceImpl(javax.management.MBeanServer mbeanServer,
                             Configuration configuration,
                             int managementConnectorID)
Method Detail

getMessageCounterManager

public MessageCounterManager getMessageCounterManager()
Specified by:
getMessageCounterManager in interface ManagementService

registerServer

public MessagingServerControlImpl registerServer(PostOffice postOffice,
                                                 StorageManager storageManager,
                                                 Configuration configuration,
                                                 HierarchicalRepository<AddressSettings> addressSettingsRepository,
                                                 HierarchicalRepository<java.util.Set<Role>> securityRepository,
                                                 ResourceManager resourceManager,
                                                 RemotingService remotingService,
                                                 MessagingServer messagingServer,
                                                 QueueFactory queueFactory,
                                                 java.util.concurrent.ScheduledExecutorService scheduledThreadPool,
                                                 boolean backup)
                                          throws java.lang.Exception
Specified by:
registerServer in interface ManagementService
Throws:
java.lang.Exception

unregisterServer

public void unregisterServer()
                      throws java.lang.Exception
Specified by:
unregisterServer in interface ManagementService
Throws:
java.lang.Exception

registerAddress

public void registerAddress(SimpleString address)
                     throws java.lang.Exception
Specified by:
registerAddress in interface ManagementService
Throws:
java.lang.Exception

unregisterAddress

public void unregisterAddress(SimpleString address)
                       throws java.lang.Exception
Specified by:
unregisterAddress in interface ManagementService
Throws:
java.lang.Exception

registerQueue

public void registerQueue(Queue queue,
                          SimpleString address,
                          StorageManager storageManager)
                   throws java.lang.Exception
Specified by:
registerQueue in interface ManagementService
Throws:
java.lang.Exception

unregisterQueue

public void unregisterQueue(SimpleString name,
                            SimpleString address)
                     throws java.lang.Exception
Specified by:
unregisterQueue in interface ManagementService
Throws:
java.lang.Exception

registerDivert

public void registerDivert(Divert divert,
                           DivertConfiguration config)
                    throws java.lang.Exception
Specified by:
registerDivert in interface ManagementService
Throws:
java.lang.Exception

unregisterDivert

public void unregisterDivert(SimpleString name)
                      throws java.lang.Exception
Specified by:
unregisterDivert in interface ManagementService
Throws:
java.lang.Exception

registerAcceptor

public void registerAcceptor(Acceptor acceptor,
                             TransportConfiguration configuration)
                      throws java.lang.Exception
Specified by:
registerAcceptor in interface ManagementService
Throws:
java.lang.Exception

unregisterAcceptor

public void unregisterAcceptor(java.lang.String name)
                        throws java.lang.Exception
Specified by:
unregisterAcceptor in interface ManagementService
Throws:
java.lang.Exception

registerBroadcastGroup

public void registerBroadcastGroup(BroadcastGroup broadcastGroup,
                                   BroadcastGroupConfiguration configuration)
                            throws java.lang.Exception
Specified by:
registerBroadcastGroup in interface ManagementService
Throws:
java.lang.Exception

unregisterBroadcastGroup

public void unregisterBroadcastGroup(java.lang.String name)
                              throws java.lang.Exception
Specified by:
unregisterBroadcastGroup in interface ManagementService
Throws:
java.lang.Exception

registerDiscoveryGroup

public void registerDiscoveryGroup(DiscoveryGroup discoveryGroup,
                                   DiscoveryGroupConfiguration configuration)
                            throws java.lang.Exception
Specified by:
registerDiscoveryGroup in interface ManagementService
Throws:
java.lang.Exception

unregisterDiscoveryGroup

public void unregisterDiscoveryGroup(java.lang.String name)
                              throws java.lang.Exception
Specified by:
unregisterDiscoveryGroup in interface ManagementService
Throws:
java.lang.Exception

registerBridge

public void registerBridge(Bridge bridge,
                           BridgeConfiguration configuration)
                    throws java.lang.Exception
Specified by:
registerBridge in interface ManagementService
Throws:
java.lang.Exception

unregisterBridge

public void unregisterBridge(java.lang.String name)
                      throws java.lang.Exception
Specified by:
unregisterBridge in interface ManagementService
Throws:
java.lang.Exception

registerCluster

public void registerCluster(ClusterConnection cluster,
                            ClusterConnectionConfiguration configuration)
                     throws java.lang.Exception
Specified by:
registerCluster in interface ManagementService
Throws:
java.lang.Exception

unregisterCluster

public void unregisterCluster(java.lang.String name)
                       throws java.lang.Exception
Specified by:
unregisterCluster in interface ManagementService
Throws:
java.lang.Exception

handleMessage

public ServerMessage handleMessage(ServerMessage message)
                            throws java.lang.Exception
Specified by:
handleMessage in interface ManagementService
Throws:
java.lang.Exception

getResource

public java.lang.Object getResource(java.lang.String resourceName)
Specified by:
getResource in interface ManagementService

registerInJMX

public void registerInJMX(javax.management.ObjectName objectName,
                          java.lang.Object managedResource)
                   throws java.lang.Exception
Specified by:
registerInJMX in interface ManagementService
Throws:
java.lang.Exception

registerInRegistry

public void registerInRegistry(java.lang.String resourceName,
                               java.lang.Object managedResource)
Specified by:
registerInRegistry in interface ManagementService

unregisterFromRegistry

public void unregisterFromRegistry(java.lang.String resourceName)
Specified by:
unregisterFromRegistry in interface ManagementService

unregisterFromJMX

public void unregisterFromJMX(javax.management.ObjectName objectName)
                       throws java.lang.Exception
Specified by:
unregisterFromJMX in interface ManagementService
Throws:
java.lang.Exception

addNotificationListener

public void addNotificationListener(NotificationListener listener)
Specified by:
addNotificationListener in interface NotificationService

removeNotificationListener

public void removeNotificationListener(NotificationListener listener)
Specified by:
removeNotificationListener in interface NotificationService

getManagementAddress

public SimpleString getManagementAddress()
Specified by:
getManagementAddress in interface ManagementService

getManagementNotificationAddress

public SimpleString getManagementNotificationAddress()
Specified by:
getManagementNotificationAddress in interface ManagementService

getClusterUser

public java.lang.String getClusterUser()
Specified by:
getClusterUser in interface ManagementService

getClusterPassword

public java.lang.String getClusterPassword()
Specified by:
getClusterPassword in interface ManagementService

getReplicationOperationInvoker

public ReplicationOperationInvoker getReplicationOperationInvoker()
Specified by:
getReplicationOperationInvoker in interface ManagementService

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface MessagingComponent
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface MessagingComponent
Throws:
java.lang.Exception

isStarted

public boolean isStarted()
Specified by:
isStarted in interface MessagingComponent

sendNotification

public void sendNotification(Notification notification)
                      throws java.lang.Exception
Description copied from interface: NotificationService
the message corresponding to a notification will always contain the properties: in addition to the properties defined in props

Specified by:
sendNotification in interface NotificationService
Throws:
java.lang.Exception
See Also:
ManagementHelper

enableNotifications

public void enableNotifications(boolean enabled)
Specified by:
enableNotifications in interface NotificationService

getAttribute

public java.lang.Object getAttribute(java.lang.String resourceName,
                                     java.lang.String attribute)


Copyright © 2006 JBoss Inc. All Rights Reserved.