com.jrockit.mc.rjmx.subscription
Class AttributeValueEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jrockit.mc.rjmx.subscription.AttributeValueEvent
All Implemented Interfaces:
java.io.Serializable

public class AttributeValueEvent
extends java.util.EventObject

The class encapsulating event data from a JRockit.

Author:
Tools
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AttributeValueEvent(AttributeDescriptor source, IConnectionHandle connectionHandle, long timestamp, java.lang.Object value)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object theOtherGuy)
           
 IConnectionHandle getConnectionHandle()
          Returns the connection handle from where the event originated.
 AttributeDescriptor getSubscriptionAttribute()
          Returns the subscription attribute source.
 long getTimestamp()
          Returns the time-stamp.
 java.lang.Object getValue()
          Returns the value.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeValueEvent

public AttributeValueEvent(AttributeDescriptor source,
                           IConnectionHandle connectionHandle,
                           long timestamp,
                           java.lang.Object value)
Constructor.

Parameters:
source - the subscription attribute from which the value originated. (Can be an aggregated composite.)
connectionHandle - the connection handle from where the event originated.
timestamp - the time stamp when the value was created.
value - the actual value.
Method Detail

getSubscriptionAttribute

public final AttributeDescriptor getSubscriptionAttribute()
Returns the subscription attribute source.

Returns:
the subscription attribute.
See Also:
EventObject.getSource()

getConnectionHandle

public final IConnectionHandle getConnectionHandle()
Returns the connection handle from where the event originated.

Returns:
the connection handle.

getTimestamp

public final long getTimestamp()
Returns the time-stamp.

Returns:
long the time-stamp for the event.

getValue

public final java.lang.Object getValue()
Returns the value.

Returns:
Object

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject

equals

public boolean equals(java.lang.Object theOtherGuy)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


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