Package com.ibm.di.api
Class DIEvent
- java.lang.Object
-
- com.ibm.di.api.DIEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class DIEvent extends java.lang.Object implements java.io.SerializableThis class is the object that describes the event that have been triggered. Its purpose is to be a general event information carrier.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEVT_AL_MSGA constant value used to tell the type of theDIEventobject.static java.lang.StringEVT_AL_STARTA constant value used to tell the type of theDIEventobject.static java.lang.StringEVT_AL_STOPA constant value used to tell the type of theDIEventobject.static java.lang.StringEVT_CI_STARTA constant value used to tell the type of theDIEventobject.static java.lang.StringEVT_CI_STOPA constant value used to tell the type of theDIEventobject.static java.lang.StringEVT_CI_UPDATEDA constant value used to tell the type of theDIEventobject.static java.lang.StringEVT_SRV_STOPA constant value used to tell the type of theDIEventobject.static java.lang.StringEVT_USER_PREFIXIf the type of theDIEventstarts with this prefix then it means that the this is a custom user defined event that have been triggered.
-
Constructor Summary
Constructors Constructor Description DIEvent(java.lang.String aType, java.lang.String aId, java.lang.Object aData)Create a newDIEventinstance.DIEvent(java.lang.String aType, java.lang.String aId, java.lang.Object aData, java.lang.String aConfigInstanceId)Create a newDIEventinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetConfigInstanceId()Retrieves the config instance ID.java.lang.ObjectgetData()Retrives tha data from the object.java.util.DategetDateCreated()Retrieves the cration of theDIEventjava.lang.StringgetId()Retrieves the ID of theDIEventjava.lang.StringgetType()Retrieves the type of the event.java.lang.StringtoString()Converts the event to a readable output.
-
-
-
Field Detail
-
EVT_CI_START
public static final java.lang.String EVT_CI_START
- See Also:
- Constant Field Values
-
EVT_CI_STOP
public static final java.lang.String EVT_CI_STOP
- See Also:
- Constant Field Values
-
EVT_CI_UPDATED
public static final java.lang.String EVT_CI_UPDATED
- See Also:
- Constant Field Values
-
EVT_AL_START
public static final java.lang.String EVT_AL_START
- See Also:
- Constant Field Values
-
EVT_AL_STOP
public static final java.lang.String EVT_AL_STOP
- See Also:
- Constant Field Values
-
EVT_SRV_STOP
public static final java.lang.String EVT_SRV_STOP
- See Also:
- Constant Field Values
-
EVT_USER_PREFIX
public static final java.lang.String EVT_USER_PREFIX
If the type of theDIEventstarts with this prefix then it means that the this is a custom user defined event that have been triggered.
EVT_USER_PREFIX= "user."- See Also:
- Constant Field Values
-
EVT_AL_MSG
public static final java.lang.String EVT_AL_MSG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DIEvent
public DIEvent(java.lang.String aType, java.lang.String aId, java.lang.Object aData) throws DIExceptionCreate a newDIEventinstance.- Parameters:
aType- the type of the event that had occurred.
Predefined constants:
EVT_CI_START= "di.ci.start"
EVT_CI_STOP= "di.ci.stop"
EVT_CI_UPDATED= "di.ci.file.updated"
EVT_AL_START= "di.al.start"
EVT_AL_STOP= "di.al.stop"
EVT_SRV_STOP= "di.server.stop"aId- the ID of the event Note: This ID should not to be think of as a Unique Identifier used for distinguishing different events occurring in the system.aData- the additional information this event carrier might contain.- Throws:
DIException- if theaTypeisnull.
-
DIEvent
public DIEvent(java.lang.String aType, java.lang.String aId, java.lang.Object aData, java.lang.String aConfigInstanceId) throws DIExceptionCreate a newDIEventinstance.- Parameters:
aType- the type of the event that had occurred.
Predefined constants:
EVT_CI_START= "di.ci.start"
EVT_CI_STOP= "di.ci.stop"
EVT_CI_UPDATED= "di.ci.file.updated"
EVT_AL_START= "di.al.start"
EVT_AL_STOP= "di.al.stop"
EVT_SRV_STOP= "di.server.stop"aId- the ID of the event Note: This ID should not to be think of as a Unique Identifier used for distinguishing different events occurring in the system.aData- the additional information this event carrier might contain.aConfigInstanceId- the configInstance id, this might benull.- Throws:
DIException- if theaTypeisnull.
-
-
Method Detail
-
getType
public java.lang.String getType()
Retrieves the type of the event.- Returns:
- the type of this event.
-
getConfigInstanceId
public java.lang.String getConfigInstanceId()
Retrieves the config instance ID.- Returns:
- the identifier of the configInstance in which the event had
occurred, or
nullif the event had occurred in different place.
-
getId
public java.lang.String getId()
Retrieves the ID of theDIEvent- Returns:
- the identifier of this
DIEventinstance.
-
getData
public java.lang.Object getData()
Retrives tha data from the object.- Returns:
- the information this object carries.
-
getDateCreated
public java.util.Date getDateCreated()
Retrieves the cration of theDIEvent- Returns:
- the time this
DIEventobject was created.
-
toString
public java.lang.String toString()
Converts the event to a readable output.- Overrides:
toStringin classjava.lang.Object- Returns:
- the
Stringrepresentation of thisDIEventobject, containing all of its attributes.
-
-