flex.management.runtime.messaging
Class MessageDestinationControl

java.lang.Object
  extended by flex.management.BaseControl
      extended by flex.management.runtime.messaging.DestinationControl
          extended by flex.management.runtime.messaging.MessageDestinationControl
All Implemented Interfaces:
BaseControlMBean, DestinationControlMBean, MessageDestinationControlMBean, MBeanRegistration

public class MessageDestinationControl
extends DestinationControl
implements MessageDestinationControlMBean

The MessageDestinationControl class is the MBean implementation for monitoring and managing a MessageDestination at runtime.


Field Summary
 
Fields inherited from class flex.management.BaseControl
DOMAIN_PREFIX
 
Constructor Summary
MessageDestinationControl(Destination destination, BaseControl parent)
          Constructs a new MessageDestinationControl instance.
 
Method Summary
 Date getLastServiceCommandTimestamp()
          Returns the timestamp for the most recent service command invocation.
 Date getLastServiceMessageFromAdapterTimestamp()
          Returns the timestamp of the most recent service message from adapter invocation.
 Date getLastServiceMessageTimestamp()
          Returns the timestamp for the most recent service message invocation.
 ObjectName getMessageCache()
          Returns the ObjectName for the message cache used by the managed destination.
 Integer getServiceCommandCount()
          Returns the number of service command invocations.
 Double getServiceCommandFrequency()
          Returns the number of service command invocations per minute.
 Integer getServiceMessageCount()
          Returns the number of service message invocations.
 Double getServiceMessageFrequency()
          Returns the number of service message invocations per minute.
 Integer getServiceMessageFromAdapterCount()
          Returns the number of messages from an adapter that the managed service has processed.
 Double getServiceMessageFromAdapterFrequency()
          Returns the number of service message from adapter invocations per minute.
 ObjectName getSubscriptionManager()
          Returns the ObjectName for the subscription manager used by the managed destination.
 ObjectName getThrottleManager()
          Returns the ObjectName for the throttle manager used by the managed destination.
 String getType()
          Returns the type for this MBean.
 void incrementServiceCommandCount()
          Increments the count of command messages serviced.
 void incrementServiceMessageCount()
          Increments the count of messages serviced.
 void incrementServiceMessageFromAdapterCount()
          Increments the count of messages from adapters processed.
 void resetServiceCommandCount()
          Resets the count of service command invocations.
 void resetServiceMessageCount()
          Resets the count of service message invocations.
 void resetServiceMessageFromAdapterCount()
          Resets the count of service message from adapter invocations.
 void setMessageCache(ObjectName value)
          Sets the ObjectName for the message cache used by the managed destination.
 void setSubscriptionManager(ObjectName value)
          Sets the ObjectName for the subscription manager used by the managed destination.
 void setThrottleManager(ObjectName value)
          Sets the ObjectName for the throttle manager used by the managed destination.
 
Methods inherited from class flex.management.runtime.messaging.DestinationControl
getAdapter, getId, getStartTimestamp, isRunning, preDeregister, setAdapter
 
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.DestinationControlMBean
getAdapter, getStartTimestamp, isRunning
 
Methods inherited from interface flex.management.BaseControlMBean
getId, getParent
 

Constructor Detail

MessageDestinationControl

public MessageDestinationControl(Destination destination,
                                 BaseControl parent)
Constructs a new MessageDestinationControl instance.

Parameters:
destination - The destination 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.

getMessageCache

public ObjectName getMessageCache()
Description copied from interface: MessageDestinationControlMBean
Returns the ObjectName for the message cache used by the managed destination.

Specified by:
getMessageCache in interface MessageDestinationControlMBean
Returns:
The ObjectName for the message cache.

setMessageCache

public void setMessageCache(ObjectName value)
Sets the ObjectName for the message cache used by the managed destination.

Parameters:
value - The ObjectName for the message cache.

getThrottleManager

public ObjectName getThrottleManager()
Description copied from interface: MessageDestinationControlMBean
Returns the ObjectName for the throttle manager used by the managed destination.

Specified by:
getThrottleManager in interface MessageDestinationControlMBean
Returns:
The ObjectName for the throttle manager.

setThrottleManager

public void setThrottleManager(ObjectName value)
Sets the ObjectName for the throttle manager used by the managed destination.

Parameters:
value - The ObjectName for the throttle manager.

getSubscriptionManager

public ObjectName getSubscriptionManager()
Description copied from interface: MessageDestinationControlMBean
Returns the ObjectName for the subscription manager used by the managed destination.

Specified by:
getSubscriptionManager in interface MessageDestinationControlMBean
Returns:
The ObjectName for the subscription manager.

setSubscriptionManager

public void setSubscriptionManager(ObjectName value)
Sets the ObjectName for the subscription manager used by the managed destination.

Parameters:
value - The ObjectName for the subscription manager.

getServiceMessageCount

public Integer getServiceMessageCount()
Description copied from interface: MessageDestinationControlMBean
Returns the number of service message invocations.

Specified by:
getServiceMessageCount in interface MessageDestinationControlMBean
Returns:
The number of service message invocations.

resetServiceMessageCount

public void resetServiceMessageCount()
Description copied from interface: MessageDestinationControlMBean
Resets the count of service message invocations.

Specified by:
resetServiceMessageCount in interface MessageDestinationControlMBean

incrementServiceMessageCount

public void incrementServiceMessageCount()
Increments the count of messages serviced.


getLastServiceMessageTimestamp

public Date getLastServiceMessageTimestamp()
Description copied from interface: MessageDestinationControlMBean
Returns the timestamp for the most recent service message invocation.

Specified by:
getLastServiceMessageTimestamp in interface MessageDestinationControlMBean
Returns:
The timestamp for the most recent service message invocation.

getServiceMessageFrequency

public Double getServiceMessageFrequency()
Description copied from interface: MessageDestinationControlMBean
Returns the number of service message invocations per minute.

Specified by:
getServiceMessageFrequency in interface MessageDestinationControlMBean
Returns:
The number of service message invocations per minute.

getServiceCommandCount

public Integer getServiceCommandCount()
Description copied from interface: MessageDestinationControlMBean
Returns the number of service command invocations.

Specified by:
getServiceCommandCount in interface MessageDestinationControlMBean
Returns:
The number of service command invocations.

resetServiceCommandCount

public void resetServiceCommandCount()
Description copied from interface: MessageDestinationControlMBean
Resets the count of service command invocations.

Specified by:
resetServiceCommandCount in interface MessageDestinationControlMBean

incrementServiceCommandCount

public void incrementServiceCommandCount()
Increments the count of command messages serviced.


getLastServiceCommandTimestamp

public Date getLastServiceCommandTimestamp()
Description copied from interface: MessageDestinationControlMBean
Returns the timestamp for the most recent service command invocation.

Specified by:
getLastServiceCommandTimestamp in interface MessageDestinationControlMBean
Returns:
The timestamp for the most recent service command invocation.

getServiceCommandFrequency

public Double getServiceCommandFrequency()
Description copied from interface: MessageDestinationControlMBean
Returns the number of service command invocations per minute.

Specified by:
getServiceCommandFrequency in interface MessageDestinationControlMBean
Returns:
The number of service command invocations per minute.

getServiceMessageFromAdapterCount

public Integer getServiceMessageFromAdapterCount()
Description copied from interface: MessageDestinationControlMBean
Returns the number of messages from an adapter that the managed service has processed.

Specified by:
getServiceMessageFromAdapterCount in interface MessageDestinationControlMBean
Returns:
The number of messages from an adapter that the managed service has processed

resetServiceMessageFromAdapterCount

public void resetServiceMessageFromAdapterCount()
Description copied from interface: MessageDestinationControlMBean
Resets the count of service message from adapter invocations.

Specified by:
resetServiceMessageFromAdapterCount in interface MessageDestinationControlMBean

incrementServiceMessageFromAdapterCount

public void incrementServiceMessageFromAdapterCount()
Increments the count of messages from adapters processed.


getLastServiceMessageFromAdapterTimestamp

public Date getLastServiceMessageFromAdapterTimestamp()
Description copied from interface: MessageDestinationControlMBean
Returns the timestamp of the most recent service message from adapter invocation.

Specified by:
getLastServiceMessageFromAdapterTimestamp in interface MessageDestinationControlMBean
Returns:
The timestamp of the most recent service message from adapter invocation.

getServiceMessageFromAdapterFrequency

public Double getServiceMessageFromAdapterFrequency()
Description copied from interface: MessageDestinationControlMBean
Returns the number of service message from adapter invocations per minute.

Specified by:
getServiceMessageFromAdapterFrequency in interface MessageDestinationControlMBean
Returns:
The number of service message from adapter invocations per minute.


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/MessageDestinationControl.html