flex.management.runtime.messaging.services.messaging.adapters
Class JMSAdapterControl

java.lang.Object
  extended by flex.management.BaseControl
      extended by flex.management.runtime.messaging.services.ServiceAdapterControl
          extended by flex.management.runtime.messaging.services.messaging.adapters.JMSAdapterControl
All Implemented Interfaces:
BaseControlMBean, JMSAdapterControlMBean, ServiceAdapterControlMBean, MBeanRegistration

public class JMSAdapterControl
extends ServiceAdapterControl
implements JMSAdapterControlMBean

The JMSAdapterControl class is the MBean implemenation for monitoring and managing JMSAdapters at runtime.


Field Summary
 
Fields inherited from class flex.management.BaseControl
DOMAIN_PREFIX
 
Constructor Summary
JMSAdapterControl(JMSAdapter serviceAdapter, BaseControl parent)
          Constructs a JMSAdapterControl, assigning its id, managed JMSAdapter and parent MBean.
 
Method Summary
 Integer getQueueConsumerCount()
          Returns the number of queue consumers for the adapter.
 String[] getQueueConsumerIds()
          Returns the ids of all queue consumers.
 Integer getQueueProducerCount()
          Returns the number of queue producers for the adapter.
 Integer getTopicConsumerCount()
          Returns the number of topic consumers for the adapter.
 String[] getTopicConsumerIds()
          Returns the ids of all topic consumers.
 Integer getTopicProducerCount()
          Returns the number of topic producers for the adapter.
 String getType()
          Returns the type for this MBean.
 void removeConsumer(String consumerId)
          Unsubscribes the consumer (for either a topic or queue).
 
Methods inherited from class flex.management.runtime.messaging.services.ServiceAdapterControl
getId, getStartTimestamp, isRunning, preDeregister
 
Methods inherited from class flex.management.BaseControl
getApplicationId, getMBeanServer, getObjectName, getParent, getParentControl, getRegistrar, postDeregister, postRegister, preRegister, register, setStartTimestamp, unregister
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface flex.management.runtime.messaging.services.ServiceAdapterControlMBean
getStartTimestamp, isRunning
 
Methods inherited from interface flex.management.BaseControlMBean
getId, getParent
 

Constructor Detail

JMSAdapterControl

public JMSAdapterControl(JMSAdapter serviceAdapter,
                         BaseControl parent)
Constructs a JMSAdapterControl, assigning its id, managed JMSAdapter and parent MBean.

Parameters:
serviceAdapter - The JMSAdapter managed by this MBean.
parent - The parent MBean in the management hierarchy.
Method Detail

getType

public String getType()
Description copied from interface: BaseControlMBean
Returns the type for this MBean. This is the value that is set for the type key in the ObjectName for this MBean.

Specified by:
getType in interface BaseControlMBean
Specified by:
getType in class BaseControl
Returns:
The MBean instance type.

getTopicProducerCount

public Integer getTopicProducerCount()
Description copied from interface: JMSAdapterControlMBean
Returns the number of topic producers for the adapter.

Specified by:
getTopicProducerCount in interface JMSAdapterControlMBean
Returns:
The number of topic producers for the adapter.

getTopicConsumerCount

public Integer getTopicConsumerCount()
Description copied from interface: JMSAdapterControlMBean
Returns the number of topic consumers for the adapter.

Specified by:
getTopicConsumerCount in interface JMSAdapterControlMBean
Returns:
The number of topic consumers for the adapter.

getTopicConsumerIds

public String[] getTopicConsumerIds()
Description copied from interface: JMSAdapterControlMBean
Returns the ids of all topic consumers.

Specified by:
getTopicConsumerIds in interface JMSAdapterControlMBean
Returns:
The ids of all topic consumers.

getQueueProducerCount

public Integer getQueueProducerCount()
Description copied from interface: JMSAdapterControlMBean
Returns the number of queue producers for the adapter.

Specified by:
getQueueProducerCount in interface JMSAdapterControlMBean
Returns:
The number of queue producers for the adapter.

getQueueConsumerCount

public Integer getQueueConsumerCount()
Description copied from interface: JMSAdapterControlMBean
Returns the number of queue consumers for the adapter.

Specified by:
getQueueConsumerCount in interface JMSAdapterControlMBean
Returns:
The number of queue consumers for the adapter.

getQueueConsumerIds

public String[] getQueueConsumerIds()
Description copied from interface: JMSAdapterControlMBean
Returns the ids of all queue consumers.

Specified by:
getQueueConsumerIds in interface JMSAdapterControlMBean
Returns:
The ids of all queue consumers.

removeConsumer

public void removeConsumer(String consumerId)
Description copied from interface: JMSAdapterControlMBean
Unsubscribes the consumer (for either a topic or queue).

Specified by:
removeConsumer in interface JMSAdapterControlMBean
Parameters:
consumerId - The id of the consumer to unsubscribe.


Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/management/runtime/messaging/services/messaging/adapters/JMSAdapterControl.html