|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.slee.management.SbbNotification
public final class SbbNotification
This class identifies a notification such as an alarm or
trace notification as being generated in response to
some action performed by an SBB. For example, if an SBB raises an alarm using the
alarm facility, an alarm notification
will be generated containing an SbbNotification object that identifies
the SBB that raised the alarm.
| Field Summary | |
|---|---|
static java.lang.String |
ALARM_NOTIFICATION_TYPE
The JMX notification type of alarm notifications that are generated in response to an SBB interacting with the AlarmFacility. |
static java.lang.String |
SBB_NAME_KEY
The JMX Object Name property key that identifies the name of the SBB in a Usage MBean whose UsageMBean.NOTIFICATION_SOURCE_KEY
property has a value equal to USAGE_NOTIFICATION_TYPE. |
static java.lang.String |
SBB_VENDOR_KEY
The JMX Object Name property key that identifies the vendor of the SBB in a Usage MBean whose UsageMBean.NOTIFICATION_SOURCE_KEY
property has a value equal to USAGE_NOTIFICATION_TYPE. |
static java.lang.String |
SBB_VERSION_KEY
The JMX Object Name property key that identifies the version of the SBB in a Usage MBean whose UsageMBean.NOTIFICATION_SOURCE_KEY
property has a value equal to USAGE_NOTIFICATION_TYPE. |
static java.lang.String |
SERVICE_NAME_KEY
The JMX Object Name property key that identifies the name of the service in a Usage MBean whose UsageMBean.NOTIFICATION_SOURCE_KEY
property has a value equal to USAGE_NOTIFICATION_TYPE. |
static java.lang.String |
SERVICE_VENDOR_KEY
The JMX Object Name property key that identifies the vendor of the service in a Usage MBean whose UsageMBean.NOTIFICATION_SOURCE_KEY
property has a value equal to USAGE_NOTIFICATION_TYPE. |
static java.lang.String |
SERVICE_VERSION_KEY
The JMX Object Name property key that identifies the version of the service in a Usage MBean whose UsageMBean.NOTIFICATION_SOURCE_KEY
property has a value equal to USAGE_NOTIFICATION_TYPE. |
static java.lang.String |
TRACE_NOTIFICATION_TYPE
The JMX notification type of trace notifications that are generated in response to an SBB interacting with the Trace Facility via a Tracer
object. |
static java.lang.String |
USAGE_NOTIFICATION_TYPE
The JMX notification type of usage notifications that are generated by a UsageMBean containing an SbbNotification as
a notification source. |
| Constructor Summary | |
|---|---|
SbbNotification(ServiceID service,
SbbID sbb)
Create a new SbbNotification object that uniquely identifies an SBB
component within a service. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
Compare this notification source with the specified object for order. |
protected int |
compareTo(java.lang.String thisClassName,
java.lang.Object that)
|
boolean |
equals(java.lang.Object obj)
Compare this notification source for equality with another object. |
java.lang.String |
getAlarmNotificationType()
Get the JMX notification type of alarm notifications generated in response to an SBB interacting with the Alarm Facility. |
protected java.lang.String |
getClassName()
Get the class name of this notification source. |
SbbID |
getSbb()
Get the SBB component identifier of this notification source. |
ServiceID |
getService()
Get the service component identifier of this notification source. |
java.lang.String |
getTraceNotificationType()
Get the JMX notification type of trace notifications generated in response to an SBB interacting with the Trace Facility. |
java.lang.String |
getUsageMBeanProperties()
Get a JMX Object Name property string that uniquely identifies the service and SBB of this notification source, suitable for inclusion in the Object Name of a Usage MBean. |
static java.lang.String |
getUsageMBeanProperties(ServiceID service,
SbbID sbb)
Get a JMX Object Name property string that uniquely identifies the specified service and SBB, suitable for inclusion in the Object Name of a Usage MBean. |
java.lang.String |
getUsageNotificationType()
Get the JMX notification type of usage notifications generated in response to an SBB interacting with its usage parameters. |
int |
hashCode()
Get a hash code value for this notification source. |
java.lang.String |
toString()
Get a string representation for this notification source. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ALARM_NOTIFICATION_TYPE
AlarmFacility.
The notification type is equal to the string "javax.slee.management.alarm.sbb".
public static final java.lang.String TRACE_NOTIFICATION_TYPE
Tracer
object.
The notification type is equal to the string "javax.slee.management.trace.sbb".
public static final java.lang.String USAGE_NOTIFICATION_TYPE
UsageMBean containing an SbbNotification as
a notification source.
The notification type is equal to the string "javax.slee.management.usage.sbb".
public static final java.lang.String SERVICE_NAME_KEY
UsageMBean.NOTIFICATION_SOURCE_KEY
property has a value equal to USAGE_NOTIFICATION_TYPE. This key is
equal to the string "serviceName".
UsageMBean.BASE_OBJECT_NAME,
UsageMBean.NOTIFICATION_SOURCE_KEY,
SERVICE_VENDOR_KEY,
SERVICE_VERSION_KEY,
SBB_NAME_KEY,
SBB_VENDOR_KEY,
SBB_VERSION_KEY,
Constant Field Valuespublic static final java.lang.String SERVICE_VENDOR_KEY
UsageMBean.NOTIFICATION_SOURCE_KEY
property has a value equal to USAGE_NOTIFICATION_TYPE. This key is
equal to the string "serviceVendor".
UsageMBean.BASE_OBJECT_NAME,
UsageMBean.NOTIFICATION_SOURCE_KEY,
SERVICE_NAME_KEY,
SERVICE_VERSION_KEY,
SBB_NAME_KEY,
SBB_VENDOR_KEY,
SBB_VERSION_KEY,
Constant Field Valuespublic static final java.lang.String SERVICE_VERSION_KEY
UsageMBean.NOTIFICATION_SOURCE_KEY
property has a value equal to USAGE_NOTIFICATION_TYPE. This key is
equal to the string "serviceVersion".
UsageMBean.BASE_OBJECT_NAME,
UsageMBean.NOTIFICATION_SOURCE_KEY,
SERVICE_NAME_KEY,
SERVICE_VENDOR_KEY,
SBB_NAME_KEY,
SBB_VENDOR_KEY,
SBB_VERSION_KEY,
Constant Field Valuespublic static final java.lang.String SBB_NAME_KEY
UsageMBean.NOTIFICATION_SOURCE_KEY
property has a value equal to USAGE_NOTIFICATION_TYPE. This key is
equal to the string "sbbName".
UsageMBean.BASE_OBJECT_NAME,
UsageMBean.NOTIFICATION_SOURCE_KEY,
SERVICE_NAME_KEY,
SERVICE_VENDOR_KEY,
SERVICE_VERSION_KEY,
SBB_VENDOR_KEY,
SBB_VERSION_KEY,
Constant Field Valuespublic static final java.lang.String SBB_VENDOR_KEY
UsageMBean.NOTIFICATION_SOURCE_KEY
property has a value equal to USAGE_NOTIFICATION_TYPE. This key is
equal to the string "sbbVendor".
UsageMBean.BASE_OBJECT_NAME,
UsageMBean.NOTIFICATION_SOURCE_KEY,
SERVICE_NAME_KEY,
SERVICE_VENDOR_KEY,
SERVICE_VERSION_KEY,
SBB_NAME_KEY,
SBB_VERSION_KEY,
Constant Field Valuespublic static final java.lang.String SBB_VERSION_KEY
UsageMBean.NOTIFICATION_SOURCE_KEY
property has a value equal to USAGE_NOTIFICATION_TYPE. This key is
equal to the string "sbbVersion".
UsageMBean.BASE_OBJECT_NAME,
UsageMBean.NOTIFICATION_SOURCE_KEY,
SERVICE_NAME_KEY,
SERVICE_VENDOR_KEY,
SERVICE_VERSION_KEY,
SBB_NAME_KEY,
SBB_VENDOR_KEY,
Constant Field Values| Constructor Detail |
|---|
public SbbNotification(ServiceID service,
SbbID sbb)
SbbNotification object that uniquely identifies an SBB
component within a service.
service - the component identifier of the service.sbb - the component identifier of the SBB.
java.lang.NullPointerException - if either argument is null.| Method Detail |
|---|
public ServiceID getService()
public SbbID getSbb()
public java.lang.String getAlarmNotificationType()
getAlarmNotificationType in interface NotificationSourceALARM_NOTIFICATION_TYPE.public java.lang.String getTraceNotificationType()
getTraceNotificationType in interface NotificationSourceTRACE_NOTIFICATION_TYPE.public java.lang.String getUsageNotificationType()
getUsageNotificationType in interface NotificationSourceUSAGE_NOTIFICATION_TYPE.
public static java.lang.String getUsageMBeanProperties(ServiceID service,
SbbID sbb)
ObjectName.quote(java.lang.String) method to ensure
that the component identifier attributes are valid for inclusion as property
values in an Object Name.
This method can be used as follows to manually construct a complete Object Name
for a Usage MBean:
ObjectName name = new ObjectName(
UsageMBean.BASE_OBJECT_NAME + "," +
UsageMBean.USAGE_PARAMETER_SET_NAME_KEY + "=" + ObjectName.quote(paramSetName) + "," // optional
UsageMBean.NOTIFICATION_SOURCE_KEY + "=" + SbbNotification.USAGE_NOTIFICATION_TYPE + "," +
SbbNotification.getUsageMBeanProperties(service, sbb)
);
service - the component identifier of the service.sbb - the component identifier of the SBB.
java.lang.NullPointerException - if either argument is null.public java.lang.String getUsageMBeanProperties()
This method is equivalent to getUsageMBeanProperties(getService(), getSbb()).
public boolean equals(java.lang.Object obj)
equals in interface NotificationSourceequals in class java.lang.Objectobj - the object to compare this with.
true if obj is an instance of this class and
references the same SBB and service component identifiers as this,
false otherwise.Object.equals(Object)public int hashCode()
hashCode in interface NotificationSourcehashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString in interface NotificationSourcetoString in class java.lang.ObjectObject.toString()public int compareTo(java.lang.Object obj)
If obj is an SbbNotification, order is determined
by comparing first the encapsulated service component identifier and then,
if the service component identifiers are equal, the encapsulated SBB
component identifier. Otherwise, if obj is a
NotificationSource, ordering is determined by comparing the
class name of this class with the class name of obj.
compareTo in interface java.lang.ComparablecompareTo in interface NotificationSourceobj - the object to compare this with.
java.lang.ClassCastException - if obj does not implement the
NotificationSource interface.Comparable.compareTo(Object)protected java.lang.String getClassName()
getClass().getName().
protected final int compareTo(java.lang.String thisClassName,
java.lang.Object that)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||