org.apache.geronimo.activemq.management
Class ActiveMQManagerGBean

java.lang.Object
  extended by org.apache.geronimo.activemq.management.ActiveMQManagerGBean
All Implemented Interfaces:
ActiveMQManager, JMSManager, NetworkManager, J2EEManagedObject

public class ActiveMQManagerGBean
extends Object
implements ActiveMQManager

Implementation of the ActiveMQ management interface. These are the ActiveMQ management features available at runtime.


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
ActiveMQManagerGBean(Kernel kernel, String objectName)
           
 
Method Summary
 JMSConnector addConnector(JMSBroker broker, String uniqueName, String protocol, String host, int port)
          Returns a new JMSConnector.
 NetworkConnector[] getConnectors()
          Gets any existing connectors associated with this network technology.
 NetworkConnector[] getConnectors(String protocol)
          Gets any existing connectors for this network technology for the specified protocol.
 NetworkConnector[] getConnectorsForContainer(Object broker)
          Gets the ObjectNames of any existing connectors for the specified container.
 NetworkConnector[] getConnectorsForContainer(Object broker, String protocol)
          Gets the ObjectNames of any existing connectors for the specified container for the specified protocol.
 Object[] getContainers()
          Gets the network containers (web, EJB, JMS, etc.)
static GBeanInfo getGBeanInfo()
           
 String getObjectName()
          Gets the unique name of this object.
 String getProductName()
          Gets the name of the product that this manager manages.
 String[] getSupportedProtocols()
          Gets the protocols which this container can configure connectors for.
 boolean isEventProvider()
          Determines if this object implemnts the event provider type defined in the J2EE Management specification.
 boolean isStateManageable()
          Determines if this object implements the state manageable type defined in the J2EE Management specification.
 boolean isStatisticsProvider()
          Determines if this object implemnts the statistics provider type defined in the J2EE Management specification.
 void removeConnector(AbstractName connectorName)
          Removes a connector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

ActiveMQManagerGBean

public ActiveMQManagerGBean(Kernel kernel,
                            String objectName)
Method Detail

getProductName

public String getProductName()
Description copied from interface: NetworkManager
Gets the name of the product that this manager manages.

Specified by:
getProductName in interface NetworkManager

getObjectName

public String getObjectName()
Description copied from interface: J2EEManagedObject
Gets the unique name of this object. The object name must comply with the ObjectName specification in the JMX specification and the restrictions in the J2EEManagementInterface.

Specified by:
getObjectName in interface J2EEManagedObject
Returns:
the unique name of this object within the server

isEventProvider

public boolean isEventProvider()
Description copied from interface: J2EEManagedObject
Determines if this object implemnts the event provider type defined in the J2EE Management specification.

Specified by:
isEventProvider in interface J2EEManagedObject
Returns:
true if this class also implements the event manageable type; false otherwise

isStateManageable

public boolean isStateManageable()
Description copied from interface: J2EEManagedObject
Determines if this object implements the state manageable type defined in the J2EE Management specification.

Specified by:
isStateManageable in interface J2EEManagedObject
Returns:
true if this class also implements the state manageable type; false otherwise

isStatisticsProvider

public boolean isStatisticsProvider()
Description copied from interface: J2EEManagedObject
Determines if this object implemnts the statistics provider type defined in the J2EE Management specification.

Specified by:
isStatisticsProvider in interface J2EEManagedObject
Returns:
true if this class also implements the statistics provider type; false otherwise

getContainers

public Object[] getContainers()
Description copied from interface: NetworkManager
Gets the network containers (web, EJB, JMS, etc.)

Specified by:
getContainers in interface NetworkManager

getSupportedProtocols

public String[] getSupportedProtocols()
Description copied from interface: NetworkManager
Gets the protocols which this container can configure connectors for.

Specified by:
getSupportedProtocols in interface NetworkManager

getConnectors

public NetworkConnector[] getConnectors()
Description copied from interface: NetworkManager
Gets any existing connectors associated with this network technology.

Specified by:
getConnectors in interface NetworkManager

getConnectors

public NetworkConnector[] getConnectors(String protocol)
Description copied from interface: NetworkManager
Gets any existing connectors for this network technology for the specified protocol.

Specified by:
getConnectors in interface NetworkManager
Parameters:
protocol - A protocol as returned by getSupportedProtocols

getConnectorsForContainer

public NetworkConnector[] getConnectorsForContainer(Object broker)
Description copied from interface: NetworkManager
Gets the ObjectNames of any existing connectors for the specified container.

Specified by:
getConnectorsForContainer in interface NetworkManager
Parameters:
broker - The container to get connectors for

getConnectorsForContainer

public NetworkConnector[] getConnectorsForContainer(Object broker,
                                                    String protocol)
Description copied from interface: NetworkManager
Gets the ObjectNames of any existing connectors for the specified container for the specified protocol.

Specified by:
getConnectorsForContainer in interface NetworkManager
Parameters:
broker - The container to get connectors for
protocol - A protocol as returned by getSupportedProtocols

addConnector

public JMSConnector addConnector(JMSBroker broker,
                                 String uniqueName,
                                 String protocol,
                                 String host,
                                 int port)
Returns a new JMSConnector. Note that the connector may well require further customization before being fully functional (e.g. SSL settings for a secure connector).

Specified by:
addConnector in interface JMSManager
Parameters:
broker - The broker to add the connector for
uniqueName - A name fragment that's unique to this connector
protocol - The protocol the connector should be configured for
host - The listen host/IP for the connector
port - The listen port for the connector
Returns:
The newly added connector. It will be valid (loaded) but not started.

removeConnector

public void removeConnector(AbstractName connectorName)
Description copied from interface: NetworkManager
Removes a connector. This shuts it down if necessary, and removes it from the server environment. It must be a connector that uses this network technology.

Specified by:
removeConnector in interface NetworkManager

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.