com.ibm.di.server
Class AssemblyLineEvent

java.lang.Object
  extended by com.ibm.di.server.AssemblyLineEvent

public class AssemblyLineEvent
extends java.lang.Object

An AssemblyLine event.

Since:
7.0
See Also:
AssemblyLine.addListener(com.ibm.di.server.AssemblyLine.AssemblyLineListener)

Field Summary
static long AL_EVENT_ENDCYCLE
          The AssemblyLine completed a cycle.
static long AL_EVENT_MATCH_ALL
          Match all possible AssemblyLine event types.
static long AL_EVENT_TERMINATE
          The AssemblyLine terminated.
 
Constructor Summary
AssemblyLineEvent(long type, java.lang.Object data, AssemblyLine source)
          Create an event.
 
Method Summary
 java.lang.Object getData()
           
 AssemblyLine getSource()
           
 long getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AL_EVENT_ENDCYCLE

public static final long AL_EVENT_ENDCYCLE
The AssemblyLine completed a cycle. getData() will return the 'work' Entry.

See Also:
Constant Field Values

AL_EVENT_TERMINATE

public static final long AL_EVENT_TERMINATE
The AssemblyLine terminated. There is not additional data associated with this event. getData() will return null.

See Also:
Constant Field Values

AL_EVENT_MATCH_ALL

public static final long AL_EVENT_MATCH_ALL
Match all possible AssemblyLine event types.

See Also:
Constant Field Values
Constructor Detail

AssemblyLineEvent

public AssemblyLineEvent(long type,
                         java.lang.Object data,
                         AssemblyLine source)
Create an event.

Parameters:
type - The type of the event.
data - Additional data associated with the event.
source - The AssemblyLine, which produced the event.
Method Detail

getType

public long getType()
Returns:
The type of the event. It will be a long value with a single set bit. You can use bit masks to match event types.

getData

public java.lang.Object getData()
Returns:
Additional data, associated with the event. Can be null. See the documentation of the various event types for information on the additional data they come with. This data is owned by the AssemblyLine. You should not store references to it for later use. Do a copy instead.

getSource

public AssemblyLine getSource()
Returns:
The AssemblyLine, which is the source of the event.