com.jrockit.mc.rjmx.subscription
Interface IAttributeSubscription


public interface IAttributeSubscription

Interface for all attribute subscriptions.

Author:
Marcus Hirt

Method Summary
 IAttributeInfo getAttributeInfo()
          Returns the attribute info associated with this subscription.
 IConnectionDescriptor getConnectionDescriptor()
          Return the IConnectionDescriptor this subscription is bound to.
 IConnectionHandle getConnectionHandle()
          Return the IConnectionHandle this subscription is bound to.
 java.lang.String getDescription()
          Returns a description of this subscription.
 AttributeValueEvent getLastAttributeValueEvent()
          Returns the last attribute value event.
 java.lang.String getName()
          Returns the name of this subscription.
 IUpdatePolicy getUpdatePolicy()
          Returns the update policy.
 void setUpdatePolicy(IUpdatePolicy policy)
          Sets the update policy of this subscription.
 

Method Detail

getLastAttributeValueEvent

AttributeValueEvent getLastAttributeValueEvent()
Returns the last attribute value event.

Returns:
the last attribute value event.

getConnectionHandle

IConnectionHandle getConnectionHandle()
Return the IConnectionHandle this subscription is bound to.

Returns:
the associated connection handle.

getConnectionDescriptor

IConnectionDescriptor getConnectionDescriptor()
Return the IConnectionDescriptor this subscription is bound to.

Returns:
the associated connection descriptor.

getAttributeInfo

IAttributeInfo getAttributeInfo()
Returns the attribute info associated with this subscription.

Returns:
the attribute info associated with this subscription.

setUpdatePolicy

void setUpdatePolicy(IUpdatePolicy policy)
Sets the update policy of this subscription. An update policy defines when an attribute is to be updated. Note that no promises are made as to when this update will be acted upon by the subscription service.

Parameters:
policy - the new update police.

getUpdatePolicy

IUpdatePolicy getUpdatePolicy()
Returns the update policy.

Returns:
the update policy.

getName

java.lang.String getName()
Returns the name of this subscription.

Returns:
the name of this object.

getDescription

java.lang.String getDescription()
Returns a description of this subscription.

Returns:
the description of this object.


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.