Package com.ibm.di.api
Class ALEvent
- java.lang.Object
-
- com.ibm.di.api.DIEvent
-
- com.ibm.di.api.ALEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class ALEvent extends DIEvent
This class is the object that describes the event that have been triggered. Its purpose is to be an information carrier for events that have impact on anAssemblyLine.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.ibm.di.api.DIEvent
EVT_AL_MSG, EVT_AL_START, EVT_AL_STOP, EVT_CI_START, EVT_CI_STOP, EVT_CI_UPDATED, EVT_SRV_STOP, EVT_USER_PREFIX
-
-
Constructor Summary
Constructors Constructor Description ALEvent(java.lang.String aType, java.lang.String aId, java.lang.Object aData, java.lang.String aConfigInstanceId, TaskStatistics aStats)Creates newALEventinstance.ALEvent(java.lang.String aType, java.lang.String aId, java.lang.Object aData, java.lang.String aConfigInstanceId, TaskStatistics aStats, java.lang.String aGUID, java.lang.String aUserMessage)Creates newALEventinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetGUID()Retrieves global ID.TaskStatisticsgetStatistics()Retrives staristics.java.lang.StringgetUserMessage()Retrieves a custom user message.java.lang.StringtoString()Converts event to readable output.-
Methods inherited from class com.ibm.di.api.DIEvent
getConfigInstanceId, getData, getDateCreated, getId, getType
-
-
-
-
Constructor Detail
-
ALEvent
public ALEvent(java.lang.String aType, java.lang.String aId, java.lang.Object aData, java.lang.String aConfigInstanceId, TaskStatistics aStats) throws DIExceptionCreates newALEventinstance.- Parameters:
aType- the type of the event that had occurred.
Predefined constants:
DIEvent.EVT_CI_START
DIEvent.EVT_CI_STOP
DIEvent.EVT_CI_UPDATED
DIEvent.EVT_AL_START
DIEvent.EVT_AL_STOP
DIEvent.EVT_SRV_STOP
DIEvent.EVT_SRV_STOPaId- 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.aStats- theTaskStatisticsobject which carries information about the runningAssemblyLineinstance at the time when the event had occurred.- Throws:
DIException- if theaTypeparameter isnull.
-
ALEvent
public ALEvent(java.lang.String aType, java.lang.String aId, java.lang.Object aData, java.lang.String aConfigInstanceId, TaskStatistics aStats, java.lang.String aGUID, java.lang.String aUserMessage) throws DIExceptionCreates newALEventinstance.- Parameters:
aType- the type of the event that had occurred.
Predefined constants:
DIEvent.EVT_CI_START
DIEvent.EVT_CI_STOP
DIEvent.EVT_CI_UPDATED
DIEvent.EVT_AL_START
DIEvent.EVT_AL_STOP
DIEvent.EVT_SRV_STOPaId- 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.aStats- theTaskStatisticsobject which carries information about the runningAssemblyLineinstance at the time when the event had occurred.aGUID- the globally unique identifier (GUID) of the AssemblyLine.aUserMessage- a custom user message, usually used when storing TombStones- Throws:
DIException- if theaTypeparameter isnull.
-
-
Method Detail
-
getStatistics
public TaskStatistics getStatistics()
Retrives staristics.- Returns:
- the
TaskStatisticsobject, that holds the statistics information about the runningAssemblyLineat the time the event has occurred.
-
getGUID
public java.lang.String getGUID()
Retrieves global ID.- Returns:
- the globally unique identifier (GUID) of the AssemblyLine.
-
getUserMessage
public java.lang.String getUserMessage()
Retrieves a custom user message.- Returns:
- a custom user message, usually used when storing TombStones
-
-