flex.management.runtime.messaging.services
Class ServiceControl

java.lang.Object
  extended by flex.management.BaseControl
      extended by flex.management.runtime.messaging.services.ServiceControl
All Implemented Interfaces:
BaseControlMBean, ServiceControlMBean, MBeanRegistration
Direct Known Subclasses:
MessageServiceControl, RemotingServiceControl

public abstract class ServiceControl
extends BaseControl
implements ServiceControlMBean

The ServiceControl class is the MBean implementation for monitoring and managing a Service at runtime.


Field Summary
 
Fields inherited from class flex.management.BaseControl
DOMAIN_PREFIX
 
Constructor Summary
ServiceControl(Service service, BaseControl parent)
          Constructs a ServiceControl, assigning its id, managed service and parent MBean.
 
Method Summary
 void addDestination(ObjectName value)
          Adds the ObjectName of a destination registered with the managed service.
 ObjectName[] getDestinations()
          Returns the ObjectNames of all destinations registered with the managed service.
 String getId()
          Returns the id for this MBean.
 Date getStartTimestamp()
          Returns the start timestamp for the Service.
 Boolean isRunning()
          Returns true if the Service is running.
 void preDeregister()
          Implements javax.management.MBeanRegistration.preDeregister.
 void removeDestination(ObjectName value)
          Removes the ObjectName of a destination registered with the managed service.
 
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

ServiceControl

public ServiceControl(Service service,
                      BaseControl parent)
Constructs a ServiceControl, assigning its id, managed service and parent MBean.

Parameters:
service - The Service 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: ServiceControlMBean
Returns true if the Service is running.

Specified by:
isRunning in interface ServiceControlMBean
Returns:
true if the Service is running.

addDestination

public void addDestination(ObjectName value)
Adds the ObjectName of a destination registered with the managed service.

Parameters:
value - The ObjectName of a destination registered with the managed service.

removeDestination

public void removeDestination(ObjectName value)
Removes the ObjectName of a destination registered with the managed service.

Parameters:
value - The ObjectName of a destination registered with the managed service.

getDestinations

public ObjectName[] getDestinations()
Description copied from interface: ServiceControlMBean
Returns the ObjectNames of all destinations registered with the managed service.

Specified by:
getDestinations in interface ServiceControlMBean
Returns:
The ObjectNames of all destinations registered with the managed service.

getStartTimestamp

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

Specified by:
getStartTimestamp in interface ServiceControlMBean
Returns:
The start timestamp for the Service.

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