flex.management.runtime.messaging.services
Class ServiceAdapterControl

java.lang.Object
  extended by flex.management.BaseControl
      extended by flex.management.runtime.messaging.services.ServiceAdapterControl
All Implemented Interfaces:
BaseControlMBean, ServiceAdapterControlMBean, MBeanRegistration
Direct Known Subclasses:
ActionScriptAdapterControl, JavaAdapterControl, JMSAdapterControl

public abstract class ServiceAdapterControl
extends BaseControl
implements ServiceAdapterControlMBean

The ServiceAdapterControl class is the base MBean implementation for monitoring and managing a ServiceAdapter at runtime.


Field Summary
 
Fields inherited from class flex.management.BaseControl
DOMAIN_PREFIX
 
Constructor Summary
ServiceAdapterControl(ServiceAdapter serviceAdapter, BaseControl parent)
          Constructs a ServiceAdapterControl, assigning its id, managed service adapter and parent MBean.
 
Method Summary
 String getId()
          Returns the id for this MBean.
 Date getStartTimestamp()
          Returns the start timestamp for the ServiceAdapter.
 Boolean isRunning()
          Returns true if the ServiceAdapter is running.
 void preDeregister()
          Implements javax.management.MBeanRegistration.preDeregister.
 
Methods inherited from class flex.management.BaseControl
getApplicationId, getMBeanServer, getObjectName, getParent, getParentControl, getRegistrar, getType, 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.BaseControlMBean
getParent, getType
 

Constructor Detail

ServiceAdapterControl

public ServiceAdapterControl(ServiceAdapter serviceAdapter,
                             BaseControl parent)
Constructs a ServiceAdapterControl, assigning its id, managed service adapter and parent MBean.

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

getId

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

Specified by:
getId in interface BaseControlMBean
Specified by:
getId in class BaseControl
Returns:
The MBean instance id.

isRunning

public Boolean isRunning()
Description copied from interface: ServiceAdapterControlMBean
Returns true if the ServiceAdapter is running.

Specified by:
isRunning in interface ServiceAdapterControlMBean
Returns:
true if the ServiceAdapter is running.

getStartTimestamp

public Date getStartTimestamp()
Description copied from interface: ServiceAdapterControlMBean
Returns the start timestamp for the ServiceAdapter.

Specified by:
getStartTimestamp in interface ServiceAdapterControlMBean
Returns:
The start timestamp for the ServiceAdapter.

preDeregister

public void preDeregister()
                   throws Exception
Description copied from class: BaseControl
Implements javax.management.MBeanRegistration.preDeregister. Allows the MBean to perform any operations needed after having been unregistered in the MBean server. This base implementation is a no-op that may be overridden.

Specified by:
preDeregister in interface MBeanRegistration
Overrides:
preDeregister in class BaseControl
Throws:
Exception


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