org.apache.qpid.management.wsdm.capabilities
Class QManAdapterCapability

java.lang.Object
  extended by org.apache.muse.core.AbstractCapability
      extended by org.apache.qpid.management.wsdm.capabilities.QManAdapterCapability
All Implemented Interfaces:
org.apache.muse.core.Capability, org.apache.muse.core.Initialization, org.apache.muse.core.InitializationParameters, org.apache.muse.core.Shutdown

public class QManAdapterCapability
extends org.apache.muse.core.AbstractCapability

QMan Adapter capability. Basically it acts as a lifecycle manager of all ws resource that correspond to entities on JMX side.


Constructor Summary
QManAdapterCapability()
           
 
Method Summary
 void connect(String host, int port, String username, String password, String virtualHost, int initialPoolCapacity, int maxPoolCapacity, long maxWaitTimeout)
          Connects QMan with a broker with the given connection data.
(package private)  void createLifeCycleTopics()
          Creates events & objects lifecycle topic that will be used to publish lifecycle event messages..
protected  Collection<org.apache.muse.core.routing.MessageHandler> createMessageHandlers(MBeanCapability capability)
          Creates the message handlers for the given capability.
(package private)  org.apache.muse.ws.notification.NotificationProducer getPublisherCapability()
          Returns the publisher capability associated with the owner resource.
(package private)  QName getTopicName(String objectType)
          Starting from an object type (i.e.
 void initialize()
          Initializes this capability.
 
Methods inherited from class org.apache.muse.core.AbstractCapability
getActions, getCapabilityURI, getEnvironment, getInitializationParameter, getInitializationParameters, getLog, getMessageHandler, getPersistence, getResource, hasBeenInitialized, hasBeenShutdown, initializeCompleted, prepareShutdown, setCapabilityURI, setEnvironment, setInitializationParameters, setLog, setMessageHandler, setMessageHandlers, setPersistence, setResource, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QManAdapterCapability

public QManAdapterCapability()
Method Detail

initialize

public void initialize()
                throws org.apache.muse.ws.addressing.soap.SoapFault
Initializes this capability.

Specified by:
initialize in interface org.apache.muse.core.Initialization
Overrides:
initialize in class org.apache.muse.core.AbstractCapability
Throws:
org.apache.muse.ws.addressing.soap.SoapFault - when the initialization fails..

connect

public void connect(String host,
                    int port,
                    String username,
                    String password,
                    String virtualHost,
                    int initialPoolCapacity,
                    int maxPoolCapacity,
                    long maxWaitTimeout)
             throws org.apache.muse.ws.addressing.soap.SoapFault
Connects QMan with a broker with the given connection data.

Parameters:
host - the host where the broker is running.
port - the port number where the broker is running.
username - username for estabilshing connection.
password - password for estabilshing connection.
virtualHost - the virtualHost name.
initialPoolCapacity - the initial size of broker connection pool.
maxPoolCapacity - the max allowed size of broker connection pool.
maxWaitTimeout - the max wait timeout for retrieving connections.
Throws:
org.apache.muse.ws.addressing.soap.SoapFault - when the connection with broker cannot be estabilished.

createMessageHandlers

protected Collection<org.apache.muse.core.routing.MessageHandler> createMessageHandlers(MBeanCapability capability)
Creates the message handlers for the given capability.

Parameters:
capability - the QMan capability.
Returns:
a collection with message handlers for the given capability.

getPublisherCapability

org.apache.muse.ws.notification.NotificationProducer getPublisherCapability()
Returns the publisher capability associated with the owner resource.

Returns:
the publisher capability associated with the owner resource.

createLifeCycleTopics

void createLifeCycleTopics()
Creates events & objects lifecycle topic that will be used to publish lifecycle event messages..


getTopicName

QName getTopicName(String objectType)
Starting from an object type (i.e. event or class) returns the name of the corresponding topic where the lifecycle message must be published. Note that if the given object type is unknown then the "Unclassified Object Types" topic will be returned (and therefore the message will be published there).

Parameters:
objectType - the type of the object.
Returns:
the name of the topic associated with the given object type.


Licensed to the Apache Software Foundation