flex.management.runtime.messaging.services.remoting
Class RemotingDestinationControl

java.lang.Object
  extended by flex.management.BaseControl
      extended by flex.management.runtime.messaging.DestinationControl
          extended by flex.management.runtime.messaging.services.remoting.RemotingDestinationControl
All Implemented Interfaces:
BaseControlMBean, DestinationControlMBean, RemotingDestinationControlMBean, MBeanRegistration

public class RemotingDestinationControl
extends DestinationControl
implements RemotingDestinationControlMBean

The RemotingDestinationControl class is the MBean implementation for monitoring and managing a RemotingDestination at runtime. This class performs no internal synchronization, so the statistics it tracks may differ slightly from the true values but they don't warrant the cost full synchronization.


Field Summary
 
Fields inherited from class flex.management.BaseControl
DOMAIN_PREFIX
 
Constructor Summary
RemotingDestinationControl(RemotingDestination destination, BaseControl parent)
          Constructs a new RemotingDestinationControl instance.
 
Method Summary
 Integer getAverageInvocationProcessingTimeMillis()
          Returns the average invocation processing time in milliseconds for the destination.
 Integer getInvocationFaultCount()
          Returns the count of faulted invocations for the destination.
 Integer getInvocationSuccessCount()
          Returns the count of successful invocations for the destination.
 String getType()
          Returns the type for this MBean.
 void incrementInvocationFaultCount(int processingTimeMillis)
          Increment the invocation fault count for the destination.
 void incrementInvocationSuccessCount(int processingTimeMillis)
          Increment the invocation success count for the 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

RemotingDestinationControl

public RemotingDestinationControl(RemotingDestination destination,
                                  BaseControl parent)
Constructs a new RemotingDestinationControl instance.

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

getType

public String getType()
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.

getInvocationSuccessCount

public Integer getInvocationSuccessCount()
                                  throws IOException
Returns the count of successful invocations for the destination.

Specified by:
getInvocationSuccessCount in interface RemotingDestinationControlMBean
Returns:
The number of successful invocations for the destination.
Throws:
IOException - Throws IOException.

incrementInvocationSuccessCount

public void incrementInvocationSuccessCount(int processingTimeMillis)
Increment the invocation success count for the destination.


getInvocationFaultCount

public Integer getInvocationFaultCount()
                                throws IOException
Returns the count of faulted invocations for the destination.

Specified by:
getInvocationFaultCount in interface RemotingDestinationControlMBean
Returns:
The number of successful invocations for the destination.
Throws:
IOException - Throws IOException.

incrementInvocationFaultCount

public void incrementInvocationFaultCount(int processingTimeMillis)
Increment the invocation fault count for the destination.


getAverageInvocationProcessingTimeMillis

public Integer getAverageInvocationProcessingTimeMillis()
                                                 throws IOException
Returns the average invocation processing time in milliseconds for the destination.

Specified by:
getAverageInvocationProcessingTimeMillis in interface RemotingDestinationControlMBean
Returns:
The average invocation processing time in milliseconds for the destination.
Throws:
IOException - Throws IOException.


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/remoting/RemotingDestinationControl.html