|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.api.DIEvent
public class DIEvent
This class is the object that describes the event that have been triggered. Its purpose is to be a general event information carrier.
| Field Summary | |
|---|---|
static String |
EVT_AL_START
A constant value used to tell the type of the DIEvent object. |
static String |
EVT_AL_STOP
A constant value used to tell the type of the DIEvent object. |
static String |
EVT_CI_START
A constant value used to tell the type of the DIEvent object. |
static String |
EVT_CI_STOP
A constant value used to tell the type of the DIEvent object. |
static String |
EVT_CI_UPDATED
A constant value used to tell the type of the DIEvent object. |
static String |
EVT_SRV_STOP
A constant value used to tell the type of the DIEvent object. |
static String |
EVT_USER_PREFIX
If the type of the DIEvent starts with this prefix then it means
that the this is a custom user defined event that have been triggered. |
| Constructor Summary | |
|---|---|
DIEvent(String aType,
String aId,
Object aData)
Create a new DIEvent instance. |
|
DIEvent(String aType,
String aId,
Object aData,
String aConfigInstanceId)
Create a new DIEvent instance. |
|
| Method Summary | |
|---|---|
String |
getConfigInstanceId()
Retrieves the config instance ID. |
Object |
getData()
Retrives tha data from the object. |
Date |
getDateCreated()
Retrieves the cration of the DIEvent |
String |
getId()
Retrieves the ID of the DIEvent |
String |
getType()
Retrieves the type of the event. |
String |
toString()
Converts the event to a readable output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String EVT_CI_START
DIEvent object.
EVT_CI_START = "di.ci.start"
public static final String EVT_CI_STOP
DIEvent object.
EVT_CI_STOP = "di.ci.stop"
public static final String EVT_CI_UPDATED
DIEvent object.
EVT_CI_UPDATED = "di.ci.file.updated"
public static final String EVT_AL_START
DIEvent object.
EVT_AL_START = "di.al.start"
public static final String EVT_AL_STOP
DIEvent object.
EVT_AL_STOP = "di.al.stop"
public static final String EVT_SRV_STOP
DIEvent object.
EVT_SRV_STOP = "di.server.stop"
public static final String EVT_USER_PREFIX
DIEvent starts with this prefix then it means
that the this is a custom user defined event that have been triggered.
EVT_USER_PREFIX = "user."
| Constructor Detail |
|---|
public DIEvent(String aType,
String aId,
Object aData)
throws DIException
DIEvent instance.
aType - the type of the event that had occurred. 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.
DIException - if the aType is null.
public DIEvent(String aType,
String aId,
Object aData,
String aConfigInstanceId)
throws DIException
DIEvent instance.
aType - the type of the event that had occurred. 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 be null.
DIException - if the aType is null.| Method Detail |
|---|
public String getType()
public String getConfigInstanceId()
null if the event had occurred in
different place.public String getId()
DIEvent
DIEvent instance.public Object getData()
public Date getDateCreated()
DIEvent
DIEvent object was created.public String toString()
toString in class ObjectString representation of this DIEvent object,
containing all of its attributes.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||