flex.management.runtime.messaging.endpoints
Class EndpointControl

java.lang.Object
  extended by flex.management.BaseControl
      extended by flex.management.runtime.messaging.endpoints.EndpointControl
All Implemented Interfaces:
BaseControlMBean, EndpointControlMBean, MBeanRegistration
Direct Known Subclasses:
AMFEndpointControl, HTTPEndpointControl, StreamingEndpointControl

public abstract class EndpointControl
extends BaseControl
implements EndpointControlMBean

The EndpointControl class is the MBean implementation for monitoring and managing an Endpoint at runtime.


Field Summary
 
Fields inherited from class flex.management.BaseControl
DOMAIN_PREFIX
 
Constructor Summary
EndpointControl(Endpoint endpoint, BaseControl parent)
          Constructs an EndpointControl, assigning its managed endpoint and parent MBean.
 
Method Summary
 void addToBytesDeserialized(int bytesDeserialized)
          Increments the count of bytes deserialized by the endpoint.
 void addToBytesSerialized(int bytesSerialized)
          Increments the count of bytes serialized by the endpoint.
 Long getBytesDeserialized()
          Returns the total Bytes that have been deserialized by this endpoint during its lifetime.
 Long getBytesSerialized()
          Returns the total Bytes that have been serialized by this endpoint during its lifetime.
 String getId()
          Returns the id for this MBean.
 Date getLastServiceMessageTimestamp()
          Returns the timestamp for the most recent message decoded by this endpoint and routed to the broker.
 String getSecurityConstraint()
          Returns the security constraint that is associated with this endpoint.
static String getSecurityConstraintOf(Endpoint endpoint)
           
 Integer getServiceMessageCount()
          Returns the count of messages decoded by this endpoint and routed to the broker.
 Double getServiceMessageFrequency()
          Returns the number of service message invocations per minute.
 Date getStartTimestamp()
          Returns the start timestamp for the Endpoint.
 String getURI()
          Returns the URI that corresponds to this endpoint.
 void incrementServiceMessageCount()
          Increments the count of serviceMessage() invocations by the endpoint.
 Boolean isRunning()
          Returns true if the Endpoint is running.
 void preDeregister()
          Implements javax.management.MBeanRegistration.preDeregister.
 void resetServiceMessageCount()
          Resets the count of service message invocations.
 
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

EndpointControl

public EndpointControl(Endpoint endpoint,
                       BaseControl parent)
Constructs an EndpointControl, assigning its managed endpoint and parent MBean.

Parameters:
endpoint - The Endpoint 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: EndpointControlMBean
Returns true if the Endpoint is running.

Specified by:
isRunning in interface EndpointControlMBean
Returns:
true if the Endpoint is running.

getStartTimestamp

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

Specified by:
getStartTimestamp in interface EndpointControlMBean
Returns:
The start timestamp for the Endpoint.

getServiceMessageCount

public Integer getServiceMessageCount()
Description copied from interface: EndpointControlMBean
Returns the count of messages decoded by this endpoint and routed to the broker.

Specified by:
getServiceMessageCount in interface EndpointControlMBean
Returns:
The count of messages decoded by this endpoint and routed to the broker.

resetServiceMessageCount

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

Specified by:
resetServiceMessageCount in interface EndpointControlMBean

incrementServiceMessageCount

public void incrementServiceMessageCount()
Increments the count of serviceMessage() invocations by the endpoint.


getLastServiceMessageTimestamp

public Date getLastServiceMessageTimestamp()
Description copied from interface: EndpointControlMBean
Returns the timestamp for the most recent message decoded by this endpoint and routed to the broker.

Specified by:
getLastServiceMessageTimestamp in interface EndpointControlMBean
Returns:
The timestamp for the most recent message decoded by this endpoint and routed to the broker.

getServiceMessageFrequency

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

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

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

getURI

public String getURI()
Description copied from interface: EndpointControlMBean
Returns the URI that corresponds to this endpoint.

Specified by:
getURI in interface EndpointControlMBean
Returns:
The URI that corresponds to this endpoint.

getSecurityConstraint

public String getSecurityConstraint()
Description copied from interface: EndpointControlMBean
Returns the security constraint that is associated with this endpoint.

Specified by:
getSecurityConstraint in interface EndpointControlMBean
Returns:
The security constraint that is associated with this endpoint.

getSecurityConstraintOf

public static String getSecurityConstraintOf(Endpoint endpoint)

getBytesDeserialized

public Long getBytesDeserialized()
Description copied from interface: EndpointControlMBean
Returns the total Bytes that have been deserialized by this endpoint during its lifetime.

Specified by:
getBytesDeserialized in interface EndpointControlMBean
Returns:
total Bytes deserialized.

addToBytesDeserialized

public void addToBytesDeserialized(int bytesDeserialized)
Increments the count of bytes deserialized by the endpoint.


getBytesSerialized

public Long getBytesSerialized()
Description copied from interface: EndpointControlMBean
Returns the total Bytes that have been serialized by this endpoint during its lifetime.

Specified by:
getBytesSerialized in interface EndpointControlMBean
Returns:
total Bytes serialized.

addToBytesSerialized

public void addToBytesSerialized(int bytesSerialized)
Increments the count of bytes serialized by the endpoint.



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/endpoints/EndpointControl.html