Package com.ibm.di.server
Class Sequence
- java.lang.Object
-
- java.lang.Thread
-
- com.ibm.di.server.Monitor
-
- com.ibm.di.server.Sequence
-
- All Implemented Interfaces:
TaskInterface
,java.lang.Runnable
public class Sequence extends Monitor implements TaskInterface
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROPERTIES_FILE
The name of the properties file from which this component will read its localized message strings.
-
Constructor Summary
Constructors Constructor Description Sequence(RS rs, SequenceConfig sc, java.lang.Object params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 thisSequence
void
shutdown(boolean sync)
Request controlled shutdown of thisSequence
, 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, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
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 classjava.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 interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
getStats
public TaskStatistics getStats()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
debugBreak
public void debugBreak(java.lang.Object arg0) throws java.lang.Exception
- Specified by:
debugBreak
in interfaceTaskInterface
- Throws:
java.lang.Exception
-
debugMsg
public void debugMsg(java.lang.Object arg0) throws java.lang.Exception
- Specified by:
debugMsg
in interfaceTaskInterface
- Throws:
java.lang.Exception
-
getConfig
public java.lang.Object getConfig(java.lang.String name)
- Specified by:
getConfig
in interfaceTaskInterface
-
getConnector
public AssemblyLineComponent getConnector(java.lang.String arg0)
- Specified by:
getConnector
in interfaceTaskInterface
-
getCurrentWork
public Entry getCurrentWork()
- Specified by:
getCurrentWork
in interfaceTaskInterface
-
getLog
public Log getLog()
- Specified by:
getLog
in interfaceTaskInterface
-
getNullBehavior
public java.lang.String getNullBehavior()
- Specified by:
getNullBehavior
in interfaceTaskInterface
-
getNullBehaviorValue
public java.lang.String getNullBehaviorValue()
- Specified by:
getNullBehaviorValue
in interfaceTaskInterface
-
getNullDefinition
public java.lang.String getNullDefinition()
- Specified by:
getNullDefinition
in interfaceTaskInterface
-
getNullDefinitionValue
public java.lang.String getNullDefinitionValue()
- Specified by:
getNullDefinitionValue
in interfaceTaskInterface
-
getParent
public RS getParent()
- Specified by:
getParent
in interfaceTaskInterface
-
getResult
public Entry getResult()
- Specified by:
getResult
in interfaceTaskInterface
-
getScriptEngine
public ScriptEngine getScriptEngine()
- Specified by:
getScriptEngine
in interfaceTaskInterface
-
getWork
public Entry getWork()
- Specified by:
getWork
in interfaceTaskInterface
-
logmsg
public void logmsg(java.lang.Object msg)
- Specified by:
logmsg
in interfaceTaskInterface
-
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 thisSequence
-
shutdown
public void shutdown(boolean sync) throws AbortALException
Request controlled shutdown of thisSequence
, 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
-
-