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, java.lang.Runnable

public class Sequence
extends Monitor
implements TaskInterface


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static java.lang.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, java.lang.Object params)
           
 
Method Summary
 void debugBreak(java.lang.Object arg0)
           
 void debugMsg(java.lang.Object arg0)
           
 void dumpEntry(Entry entry)
          Prints the contents of an entry to the Log.
 boolean equals(java.lang.Object o)
          
 java.lang.Object getConfig(java.lang.String name)
           
 AssemblyLineComponent getConnector(java.lang.String arg0)
           
 Entry getCurrentWork()
           
 Log getLog()
           
 java.lang.String getNullBehavior()
           
 java.lang.String getNullBehaviorValue()
           
 java.lang.String getNullDefinition()
           
 java.lang.String getNullDefinitionValue()
           
 RS getParent()
           
 Entry getResult()
           
 ScriptEngine getScriptEngine()
           
 TaskStatistics getStats()
           
 Entry getWork()
           
 int hashCode()
           
 void logmsg(java.lang.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 java.lang.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,
                java.lang.Object params)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.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 java.lang.Runnable
Overrides:
run in class java.lang.Thread

getStats

public TaskStatistics getStats()

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

debugBreak

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

debugMsg

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

getConfig

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

getConnector

public AssemblyLineComponent getConnector(java.lang.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 java.lang.String getNullBehavior()
Specified by:
getNullBehavior in interface TaskInterface

getNullBehaviorValue

public java.lang.String getNullBehaviorValue()
Specified by:
getNullBehaviorValue in interface TaskInterface

getNullDefinition

public java.lang.String getNullDefinition()
Specified by:
getNullDefinition in interface TaskInterface

getNullDefinitionValue

public java.lang.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(java.lang.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:
java.lang.Exception - If the current Thread tries to stop itself.
AbortALException