public interface NotificationSource extends Comparable, Serializable
NotificationSource
interface is a marker interface that
is used to identify the source of an alarm, trace, or usage notification
generated within the SLEE and delivered to notification listeners.AlarmNotification
,
TraceNotification
,
UsageNotification
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj)
Compare this notification source with the specified object for order.
|
boolean |
equals(Object obj)
Compare this notification source object for equality with another object.
|
String |
getAlarmNotificationType()
Get the JMX notification type of alarm notifications generated in response
to this notification source interacting with the Alarm Facility.
|
String |
getTraceNotificationType()
Get the JMX notification type of trace notifications generated in response
to this notification source interacting with the Trace Facility.
|
String |
getUsageNotificationType()
Get the JMX notification type of usage notifications generated in response
to this notification source interacting with its usage parameters.
|
int |
hashCode()
Get a hash code value for this notification source.
|
String |
toString()
Get a string representation for this notification source.
|
String getAlarmNotificationType()
String getTraceNotificationType()
null
if this notification
source has no defined trace notification type (as it does not interact
with the Trace Facility).String getUsageNotificationType()
null
if this notification
source has no defined usage notification type (as it does not interact
with usage parameters).boolean equals(Object obj)
equals
in class Object
obj
- the object to compare this with.true
if obj
is a notification source object
of the same type and identity as this, false
otherwise.Object.equals(Object)
int hashCode()
hashCode
in class Object
Object.hashCode()
String toString()
toString
in class Object
Object.toString()
int compareTo(Object obj)
The general contract of this method for all NotificationSource
objects is that if this
and obj
are of the same
class type, this method will compare their respective encapsulated
identities. Otherwise, if the objects are of different types, the result
of comparing the class names of this
and obj
is
returned. This allows NotificationSource
objects of
different types to be stored in a single ordered collection.
It is illegal to pass an object that does not implement the
NotificationSource
interface as an argument to this method.
Doing so will raise a ClassCastException
.
compareTo
in interface Comparable
obj
- the object to compare this with. This object must implement
the NotificationSource
interface.ClassCastException
- if obj
does not implement the
NotificationSource
interface.Comparable.compareTo(Object)