|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--javax.management.Notification | +--javax.slee.usage.UsageNotification
This notification is emitted by an SbbUsageMBean
object to indicate a
counter-type usage parameter has been updated or a sample-type usage parameter has
accumulated a new sample.
The notification type of all usage notifications is specified by the
SbbUsageMBean.USAGE_NOTIFICATION_TYPE
attribute.
Fields inherited from class javax.management.Notification |
source |
Constructor Summary | |
UsageNotification(SbbUsageMBean notificationSource,
ServiceID serviceID,
SbbID sbbID,
java.lang.String paramSet,
java.lang.String paramName,
boolean counter,
long value,
long sequenceNumber,
long timeStamp)
Create a UsageNotification containing the updated value of an
SBB's usage parameter. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Compare this notification for equality with another object. |
SbbID |
getSbb()
Get the component identifier of the SBB whose usage parameter was updated. |
ServiceID |
getService()
Get the component identifier of the Service whose SBB's usage parameter was updated. |
java.lang.String |
getUsageParameterName()
Get the name of the usage parameter that was updated. |
java.lang.String |
getUsageParameterSetName()
Get the name of the usage parameter set containing the usage parameter thas was updated. |
long |
getValue()
Get the updated value or emitted sample of the usage parameter. |
int |
hashCode()
Get a hash code value for this notification. |
boolean |
isCounter()
Determine if the usage parameter updated is counter-type or sample-type. |
java.lang.String |
toString()
Get a string representation for this notification. |
Methods inherited from class javax.management.Notification |
getMessage, getSequenceNumber, getSource, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UsageNotification(SbbUsageMBean notificationSource, ServiceID serviceID, SbbID sbbID, java.lang.String paramSet, java.lang.String paramName, boolean counter, long value, long sequenceNumber, long timeStamp) throws java.lang.NullPointerException
UsageNotification
containing the updated value of an
SBB's usage parameter.notificationSource
- the SbbUsageMBean
object that is
emitting this notification.serviceID
- the component identifier of the Service whose SBB's usage
parameter was updated.sbbID
- the component identifier of the SBB whose usage parameter was updated.paramSet
- the name of the SBB usage parameter set containing the usage parameter
that was updated. If the unamed usage parameter set was updated, this value
is null
.paramName
- the name of the usage parameter that was updated.value
- this is either the new value of the usage parameter (for counter-type
usage parameters), or a sample value (for sample-type usage parameters).sequenceNumber
- the notification sequence number within the source
SbbUsageMBean
.timeStamp
- the time (in ms since January 1, 1970 UTC) that the notification
was generated.java.lang.NullPointerException
- if notificationSource
, serviceID
,
sbbID
or paramName
is null
.Method Detail |
public final ServiceID getService()
public final SbbID getSbb()
public final java.lang.String getUsageParameterSetName()
null
if the usage parameter
was a member of the unnamed usage parameter set for the SBB.public final java.lang.String getUsageParameterName()
public final boolean isCounter()
true
if the usage parameter updated is counter-type,
false
if the usage parameter updated is sample-type.public final long getValue()
isCounter()
returns true
this value is the updated value of the counter-type usage
parameter. If isCounter()
returns false
this value is a sample
value for the usage parameter.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare this with.true
if obj
is an instance of this class and the
Service identifier, SBB identifier, usage parameter set name, and usage parameter
name attributes of obj
are the same as the corresponding attributes
of this
.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.util.EventObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |