com.ibm.di.api.jmx.mbeans
Class Notifier

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by com.ibm.di.api.jmx.mbeans.Notifier
All Implemented Interfaces:
BaseMBean, NotifierMBean, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter

public class Notifier
extends javax.management.NotificationBroadcasterSupport
implements NotifierMBean


Field Summary
static String EVT_AL_START
           
static String EVT_AL_STOP
           
static String EVT_CI_START
           
static String EVT_CI_STOP
           
static String EVT_CI_UPDATED
           
static String EVT_EH_START
           
static String EVT_EH_STOP
           
static String EVT_SRV_STOP
           
static String MBEAN_ID
           
static String MBEAN_TYPE
           
static String TYPE_ALL
           
static String TYPE_ASSEMBLY_LINE
           
static String TYPE_CONFIG_INSTANCE
           
static String TYPE_EVENT_HANDLER
           
 
Method Summary
 void assemblyLineFinished(String aAssemblyLineId)
           
 void assemblyLineStarted(String aAssemblyLineId)
           
 void configInstanceStarted(String aConfigId)
           
 void configInstanceStopped(String aConfigId)
           
 void configInstanceUpdated(String aConfigId)
           
 void disable()
           
 void enable()
           
 void eventHandlerFinished(String aEventHandlerId)
           
 void eventHandlerStarted(String aEventHandlerId)
           
 String getId()
          Reads attribute "Id".
 String getKeyPropertyList()
           
static Notifier getNotifier()
           
 javax.management.ObjectName getObjectName()
           
 String getType()
          Reads attribute "Type".
static Notifier init()
           
 boolean isEnabled()
           
 void sendCustomNotification(String aType, String aId, Object aData)
           
 void sendNotification(javax.management.Notification aNotification)
           
 void serverStopped(Date aBootTime)
           
 
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

MBEAN_TYPE

public static final String MBEAN_TYPE
See Also:
Constant Field Values

MBEAN_ID

public static final String MBEAN_ID
See Also:
Constant Field Values

EVT_CI_START

public static final String EVT_CI_START
See Also:
Constant Field Values

EVT_CI_STOP

public static final String EVT_CI_STOP
See Also:
Constant Field Values

EVT_CI_UPDATED

public static final String EVT_CI_UPDATED
See Also:
Constant Field Values

EVT_AL_START

public static final String EVT_AL_START
See Also:
Constant Field Values

EVT_AL_STOP

public static final String EVT_AL_STOP
See Also:
Constant Field Values

EVT_EH_START

public static final String EVT_EH_START
See Also:
Constant Field Values

EVT_EH_STOP

public static final String EVT_EH_STOP
See Also:
Constant Field Values

EVT_SRV_STOP

public static final String EVT_SRV_STOP
See Also:
Constant Field Values

TYPE_ALL

public static final String TYPE_ALL
See Also:
Constant Field Values

TYPE_CONFIG_INSTANCE

public static final String TYPE_CONFIG_INSTANCE
See Also:
Constant Field Values

TYPE_ASSEMBLY_LINE

public static final String TYPE_ASSEMBLY_LINE
See Also:
Constant Field Values

TYPE_EVENT_HANDLER

public static final String TYPE_EVENT_HANDLER
See Also:
Constant Field Values
Method Detail

init

public static Notifier init()
                     throws DIException
Throws:
DIException

getNotifier

public static Notifier getNotifier()
                            throws DIException
Throws:
DIException

getObjectName

public javax.management.ObjectName getObjectName()

isEnabled

public boolean isEnabled()

enable

public void enable()

disable

public void disable()

assemblyLineStarted

public void assemblyLineStarted(String aAssemblyLineId)

assemblyLineFinished

public void assemblyLineFinished(String aAssemblyLineId)

eventHandlerStarted

public void eventHandlerStarted(String aEventHandlerId)

eventHandlerFinished

public void eventHandlerFinished(String aEventHandlerId)

configInstanceStarted

public void configInstanceStarted(String aConfigId)

configInstanceStopped

public void configInstanceStopped(String aConfigId)

configInstanceUpdated

public void configInstanceUpdated(String aConfigId)

serverStopped

public void serverStopped(Date aBootTime)

sendCustomNotification

public void sendCustomNotification(String aType,
                                   String aId,
                                   Object aData)

getType

public String getType()
Description copied from interface: BaseMBean
Reads attribute "Type".

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".

Specified by:
getType in interface BaseMBean
Returns:
the type of this MBean.

getId

public String getId()
Description copied from interface: BaseMBean
Reads attribute "Id". The "Id" value should be different for different MBeans of the same type.

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".

Specified by:
getId in interface BaseMBean
Returns:
the Id of this MBean.

getKeyPropertyList

public String getKeyPropertyList()

sendNotification

public void sendNotification(javax.management.Notification aNotification)
Overrides:
sendNotification in class javax.management.NotificationBroadcasterSupport