|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
com.ibm.di.api.jmx.mbeans.Notifier
public class Notifier
This class provides methods for sending JMX notifications.
Field Summary | |
---|---|
static String |
EVT_AL_START
Final variable used for distinguishing the type of the notification. |
static String |
EVT_AL_STOP
Final variable used for distinguishing the type of the notification. |
static String |
EVT_CI_START
Final variable used for distinguishing the type of the notification. |
static String |
EVT_CI_STOP
Final variable used for distinguishing the type of the notification. |
static String |
EVT_CI_UPDATED
Final variable used for distinguishing the type of the notification. |
static String |
EVT_SRV_STOP
Final variable used for distinguishing the type of the notification. |
static String |
MBEAN_ID
ID of the MBean. |
static String |
MBEAN_TYPE
Type of the MBean. |
static String |
TYPE_ALL
Final variable used for distinguishing the type of the notification groups. |
static String |
TYPE_ASSEMBLY_LINE
Final variable used for distinguishing the type of the notification groups. |
static String |
TYPE_CONFIG_INSTANCE
Final variable used for distinguishing the type of the notification groups. |
Method Summary | |
---|---|
void |
assemblyLineFinished(String aAssemblyLineId)
Sends notification for assembly line stopping. |
void |
assemblyLineStarted(String aAssemblyLineId)
Sends notification for assembly line starting. |
void |
configInstanceStarted(String aConfigId)
Sends notification for config instance starting. |
void |
configInstanceStopped(String aConfigId)
Sends notification for config instance stopping. |
void |
configInstanceUpdated(String aConfigId)
Sends notification for updating the config instance file. |
void |
disable()
Disables the Notifier. |
void |
enable()
Enables the Notifier. |
String |
getId()
Reads attribute "Id". |
String |
getKeyPropertyList()
Returns the MBean key property list. |
static Notifier |
getNotifier()
Returns the Notifier. |
ObjectName |
getObjectName()
Gets the object name of the Notifier. |
String |
getType()
Reads attribute "Type". |
static Notifier |
init()
Initializes the Notifier. |
boolean |
isEnabled()
Checks if the notification is enabled. |
void |
sendCustomNotification(String aType,
String aId,
Object aData)
Sends custom notification. |
void |
sendNotification(Notification aNotification)
Sends a notification. |
void |
serverStopped(Date aBootTime)
Sends notification for server stopping. |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MBEAN_TYPE
public static final String MBEAN_ID
public static final String EVT_CI_START
public static final String EVT_CI_STOP
public static final String EVT_CI_UPDATED
public static final String EVT_AL_START
public static final String EVT_AL_STOP
public static final String EVT_SRV_STOP
public static final String TYPE_ALL
public static final String TYPE_CONFIG_INSTANCE
public static final String TYPE_ASSEMBLY_LINE
Method Detail |
---|
public static Notifier init() throws DIException
DIException
- if the JMX notification service is already initialized.public static Notifier getNotifier() throws DIException
DIException
- if the JMX notification service is not initialized.public ObjectName getObjectName()
public boolean isEnabled()
public void enable()
public void disable()
public void assemblyLineStarted(String aAssemblyLineId)
aAssemblyLineId
- the assembly line id.public void assemblyLineFinished(String aAssemblyLineId)
aAssemblyLineId
- the assembly line id.public void configInstanceStarted(String aConfigId)
aConfigId
- the config instance id.public void configInstanceStopped(String aConfigId)
aConfigId
- the config instance id.public void configInstanceUpdated(String aConfigId)
aConfigId
- the config instance id.public void serverStopped(Date aBootTime)
aBootTime
- the boot time.public void sendCustomNotification(String aType, String aId, Object aData)
aType
- the type of the notification.aId
- the id of the notification. Used for building the message of
the notification.aData
- The user data object. It is used for whatever data the
notification source wishes to communicate to its consumers.public String getType()
getType()
and getId()
are used in a common
schema for object names for all MBeans in the management package. The key
properties part of the object name of each MBean is defined as
"type=" + getType() + ",id=" + getId()
, for example
"type=AssemblyLine,id=Hello".
getType
in interface BaseMBean
public String getId()
getType()
and getId()
are used in a common
schema for object names for all MBeans in the management package. The key
properties part of the object name of each MBean is defined as
"type=" + getType() + ",id=" + getId()
, for example
"type=AssemblyLine,id=Hello".
getId
in interface BaseMBean
public String getKeyPropertyList()
Notifier
and the id is Notifier
, the
result of this method would be
"type=Notifier,id=Notifier"
public void sendNotification(Notification aNotification)
sendNotification
in class NotificationBroadcasterSupport
aNotification
- The notification to send.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |