com.ibm.di.server
Class Sequence

java.lang.Object
  extended by java.lang.Thread
      extended by com.ibm.di.server.Monitor
          extended by com.ibm.di.server.Sequence
All Implemented Interfaces:
TaskInterface, Runnable

public class Sequence
extends Monitor
implements TaskInterface


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
static String PROPERTIES_FILE
          The name of the properties file from which this component will read its localized message strings.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Sequence(RS rs, SequenceConfig sc, Object params)
           
 
Method Summary
 void debugBreak(Object arg0)
           
 void debugMsg(Object arg0)
           
 void dumpEntry(Entry entry)
          Prints the contents of an entry to the Log.
 boolean equals(Object o)
          
 Object getConfig(String name)
           
 AssemblyLineComponent getConnector(String arg0)
           
 Entry getCurrentWork()
           
 Log getLog()
           
 String getNullBehavior()
           
 String getNullBehaviorValue()
           
 String getNullDefinition()
           
 String getNullDefinitionValue()
           
 RS getParent()
           
 Entry getResult()
           
 ScriptEngine getScriptEngine()
           
 TaskStatistics getStats()
           
 Entry getWork()
           
 int hashCode()
           
 void logmsg(Object msg)
           
 void run()
           
 void shutdown()
          Request controlled shutdown of this Sequence
 void shutdown(boolean sync)
          Request controlled shutdown of this Sequence, and waits for it to stop.
 
Methods inherited from class com.ibm.di.server.Monitor
addActionListener, addThread, allThreadsStopped, fireListener, removeActionListener, removeThread, runningALs, runningSequences, setMonitorMessage, threadStarted, threadStopped
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTIES_FILE

public static final String PROPERTIES_FILE
The name of the properties file from which this component will read its localized message strings.

See Also:
Constant Field Values
Constructor Detail

Sequence

public Sequence(RS rs,
                SequenceConfig sc,
                Object params)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Returns:
the unique identifier for this Sequence object. All the Sequence objects in the JVM they run have a different number.

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

getStats

public TaskStatistics getStats()

equals

public boolean equals(Object o)

Overrides:
equals in class Object

debugBreak

public void debugBreak(Object arg0)
                throws Exception
Specified by:
debugBreak in interface TaskInterface
Throws:
Exception

debugMsg

public void debugMsg(Object arg0)
              throws Exception
Specified by:
debugMsg in interface TaskInterface
Throws:
Exception

getConfig

public Object getConfig(String name)
Specified by:
getConfig in interface TaskInterface

getConnector

public AssemblyLineComponent getConnector(String arg0)
Specified by:
getConnector in interface TaskInterface

getCurrentWork

public Entry getCurrentWork()
Specified by:
getCurrentWork in interface TaskInterface

getLog

public Log getLog()
Specified by:
getLog in interface TaskInterface

getNullBehavior

public String getNullBehavior()
Specified by:
getNullBehavior in interface TaskInterface

getNullBehaviorValue

public String getNullBehaviorValue()
Specified by:
getNullBehaviorValue in interface TaskInterface

getNullDefinition

public String getNullDefinition()
Specified by:
getNullDefinition in interface TaskInterface

getNullDefinitionValue

public String getNullDefinitionValue()
Specified by:
getNullDefinitionValue in interface TaskInterface

getParent

public RS getParent()
Specified by:
getParent in interface TaskInterface

getResult

public Entry getResult()
Specified by:
getResult in interface TaskInterface

getScriptEngine

public ScriptEngine getScriptEngine()
Specified by:
getScriptEngine in interface TaskInterface

getWork

public Entry getWork()
Specified by:
getWork in interface TaskInterface

logmsg

public void logmsg(Object msg)
Specified by:
logmsg in interface TaskInterface

dumpEntry

public void dumpEntry(Entry entry)
Prints the contents of an entry to the Log.

Parameters:
entry - The entry object to print

shutdown

public void shutdown()
Request controlled shutdown of this Sequence


shutdown

public void shutdown(boolean sync)
              throws AbortALException
Request controlled shutdown of this Sequence, and waits for it to stop.

Parameters:
sync - If true, creates a new Thread to do the waiting.
Throws:
Exception - If the current Thread tries to stop itself.
AbortALException