public final class ProfileTableNotification extends Object implements NotificationSource
alarm
or
trace
notification as being generated in response to
some action performed by a profile object on behalf of a profile. For example,
if a profile object generates a traceable trace message using a
Tracer
object, a trace notification will be
generated containing a ProfileTableNotification
object that identifies
the profile table containing the profile.Modifier and Type | Field and Description |
---|---|
static String |
ALARM_NOTIFICATION_TYPE
The JMX notification type of alarm notifications that are generated in response
to a profile object interacting with the
AlarmFacility . |
static String |
PROFILE_TABLE_NAME_KEY
The JMX Object Name property key that identifies the name of the profile table
in a Usage MBean whose
UsageMBean.NOTIFICATION_SOURCE_KEY
property has a value equal to USAGE_NOTIFICATION_TYPE . |
static String |
TRACE_NOTIFICATION_TYPE
The JMX notification type of trace notifications that are generated in response
to a profile object interacting with a
Tracer object. |
static String |
USAGE_NOTIFICATION_TYPE
The JMX notification type of usage notifications that are generated by a
UsageMBean containing a ProfileTableNotification
as a notification source. |
Constructor and Description |
---|
ProfileTableNotification(String profileTableName)
Create a new
ProfileTableNotification object that uniquely identifies a
profile table. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj)
Compare this notification source with the specified object for order.
|
protected int |
compareTo(String thisClassName,
Object that) |
boolean |
equals(Object obj)
Compare this notification source for equality with another object.
|
String |
getAlarmNotificationType()
Get the JMX notification type of alarm notifications generated in response
to a profile object interacting with the Alarm Facility.
|
protected String |
getClassName()
Get the class name of this notification source.
|
String |
getProfileTableName()
Get the name of the profile table of this notification source.
|
String |
getTraceNotificationType()
Get the JMX notification type of trace notifications generated in response
to a profile object interacting with the Trace Facility.
|
String |
getUsageNotificationType()
Get the JMX notification type of usage notifications generated in response
to a profile object 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.
|
public static final String ALARM_NOTIFICATION_TYPE
AlarmFacility
.
The notification type is equal to the string "javax.slee.management.alarm.profiletable".
public static final String TRACE_NOTIFICATION_TYPE
Tracer
object.
The notification type is equal to the string "javax.slee.management.trace.profiletable".
public static final String USAGE_NOTIFICATION_TYPE
UsageMBean
containing a ProfileTableNotification
as a notification source.
The notification type is equal to the string "javax.slee.management.usage.profiletable".
public static final String PROFILE_TABLE_NAME_KEY
UsageMBean.NOTIFICATION_SOURCE_KEY
property has a value equal to USAGE_NOTIFICATION_TYPE
. This key is
equal to the string "profileTableName".UsageMBean.BASE_OBJECT_NAME
,
UsageMBean.NOTIFICATION_SOURCE_KEY
,
Constant Field Valuespublic ProfileTableNotification(String profileTableName)
ProfileTableNotification
object that uniquely identifies a
profile table.profileTableName
- the name of the profile table..NullPointerException
- if profileTableName
is null
.public String getProfileTableName()
public String getAlarmNotificationType()
getAlarmNotificationType
in interface NotificationSource
ALARM_NOTIFICATION_TYPE
.public String getTraceNotificationType()
getTraceNotificationType
in interface NotificationSource
TRACE_NOTIFICATION_TYPE
.public String getUsageNotificationType()
getUsageNotificationType
in interface NotificationSource
USAGE_NOTIFICATION_TYPE
.public boolean equals(Object obj)
equals
in interface NotificationSource
equals
in class Object
obj
- the object to compare this with.true
if obj
is an instance of this class and
contains the same profile table name as this, false
otherwise.Object.equals(Object)
public int hashCode()
hashCode
in interface NotificationSource
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in interface NotificationSource
toString
in class Object
Object.toString()
public int compareTo(Object obj)
If obj
is a ProfileTableNotification
, order is
determined by comparing the encapsulated profile table name. 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 Comparable
compareTo
in interface NotificationSource
obj
- the object to compare this with.ClassCastException
- if obj
does not implement the
NotificationSource
interface.Comparable.compareTo(Object)
protected String getClassName()
getClass().getName()
.