|
|
com.architech
|
Fields inherited from class com.architech.rsMonitor |
actionListener, monitoredThreads |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
rscTask()
Constructor for the rscTask object |
|
rscTask(com.architech.RSInterface parent,
String taskName,
Object conn,
com.architech.rsLog log)
Constructor for the rscTask object |
|
rscTask(com.architech.RSInterface parent,
String taskName,
TreeMap config)
Constructor for the rscTask object |
Method Summary | |
void |
close()
The close method terminates all connectors |
void |
debug(Object msg)
Logs a message to the assembly line logfile |
void |
debugBreak(Object obj)
This method sends an object for display to the debug panel and waits for a continue/stop message. |
boolean |
debuggerEnabled()
Description of the Method |
void |
debugMsg(Object obj)
This method sends an object for display to the debug panel. |
void |
disableDebug()
DEBUG METHODS This method disconnects any open debug session. |
void |
disableDebug(Object msg)
Description of the Method |
void |
dumpEntry(Entry entry)
Prints the contents of an entry to the logfile. |
boolean |
enableDebug()
This method connects to Metamerge Admin debug panel. |
boolean |
enableDebug(int port)
Description of the Method |
Object |
getConfig(String name)
getConfig returns a named value from the assembly line's configuration. |
rscTaskComponent |
getConnector(String name)
Returns a connector object from the |
ArrayList |
getConnectors()
Gets the connectors attribute of the rscTask object |
com.architech.rsLog |
getLog()
Gets the log attribute of the rscTask object |
String |
getLogFilePath()
Returns the logfile path relative to the working directory. |
String |
getNullBehavior()
Gets the nullBehavior attribute of the rscTask object |
String |
getNullBehaviorValue()
Gets the nullBehaviorValue attribute of the rscTask object |
Object |
getParam(String name)
getParam returns the value for a user-defined parameter. |
com.architech.RSInterface |
getParent()
This method returns the RSInterface (main) object. |
Entry |
getResult()
This method returns the result entry object. |
com.architech.script.scriptEngine |
getScriptEngine()
getScriptEngine returns the scriptEngine object for the assembly line. |
com.architech.rsStats |
getStats()
This method returns the statistics object. |
Entry |
getWork()
This method returns the initial work entry object. |
void |
initConnectors()
This method initializes all connectors and prepares them for the assembly line run. |
protected void |
initScriptEngine()
Description of the Method |
void |
loadConnectors()
This method loads all connectors and prepares them for the assembly line run. |
void |
loadScript(String name,
boolean forceInclude)
This method includes a script in the current script engine context. |
void |
logmonitor(String msg)
Logs a message to the monitor. |
void |
logmsg(Object msg)
Logs a message to the assembly line logfile |
void |
run()
The run method kicks off the thread and starts assembly line execution. |
void |
runTask()
This method is called from the run() method to perform the main loop. |
void |
setConfig(String name,
Object value)
setConfig sets a named parameter value in the assembly line's configuration. |
void |
setParam(String name,
Object value)
setParam sets the value for the user-defined parameter. |
void |
setWork(Entry entry)
This method sets the initial work entry object. |
void |
terminate()
Description of the Method |
Methods inherited from class com.architech.rsMonitor |
addActionListener, addThread, fireListener, removeActionListener, removeThread, setMonitorMessage, threadStarted, threadStopped |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public rscTask(com.architech.RSInterface parent, String taskName, Object conn, com.architech.rsLog log) throws Exception
parent
- Description of ParametertaskName
- Description of Parameterconn
- Description of Parameterlog
- Description of ParameterException
- Description of Exceptionpublic rscTask(com.architech.RSInterface parent, String taskName, TreeMap config) throws Exception
parent
- Description of ParametertaskName
- Description of Parameterconfig
- Description of ParameterException
- Description of Exceptionpublic rscTask()
Method Detail |
public void setWork(Entry entry)
entry
- The initiali work entrypublic void setParam(String name, Object value)
name
- The user-defined parameter namevalue
- The value associated with namepublic void setConfig(String name, Object value)
name
- The assemblyline configuration parameter namevalue
- The value associated with namepublic com.architech.RSInterface getParent()
getParent
in interface com.architech.TaskInterface
public Entry getResult()
public Entry getWork()
public String getLogFilePath()
public Object getParam(String name)
name
- The user-defined parameter namepublic Object getConfig(String name)
getConfig
in interface com.architech.TaskInterface
name
- The assemblyline parameter namepublic com.architech.script.scriptEngine getScriptEngine()
getScriptEngine
in interface com.architech.TaskInterface
public com.architech.rsStats getStats()
public rscTaskComponent getConnector(String name)
getConnector
in interface com.architech.TaskInterface
name
- The connector name as specified in the configurationpublic ArrayList getConnectors()
public com.architech.rsLog getLog()
getLog
in interface com.architech.TaskInterface
public String getNullBehavior()
getNullBehavior
in interface com.architech.TaskInterface
public String getNullBehaviorValue()
getNullBehaviorValue
in interface com.architech.TaskInterface
public void run()
public void close()
public void terminate()
public void loadConnectors() throws Exception
Exception
- Description of Exceptionpublic void initConnectors() throws Exception
Exception
- Description of Exceptionpublic void runTask() throws Exception
Exception
- Description of Exceptionpublic void logmsg(Object msg)
logmsg
in interface com.architech.TaskInterface
msg
- The messagepublic void debug(Object msg)
msg
- The messagepublic void logmonitor(String msg)
msg
- The messagepublic void dumpEntry(Entry entry)
entry
- The entry object to printpublic void disableDebug()
public void disableDebug(Object msg)
msg
- Description of Parameterpublic boolean enableDebug()
public boolean enableDebug(int port)
port
- Description of Parameterpublic boolean debuggerEnabled()
public void debugMsg(Object obj) throws Exception
debugMsg
in interface com.architech.TaskInterface
obj
- The object to display. This object must be SerializableException
- Description of Exceptionpublic void debugBreak(Object obj) throws Exception
debugBreak
in interface com.architech.TaskInterface
obj
- The object to displayException
- Description of Exceptionpublic void loadScript(String name, boolean forceInclude) throws Exception
name
- The script library nameforceInclude
- Force inclusion of the script (in case autoinclude is false)Exception
- Description of Exceptionprotected void initScriptEngine() throws Exception
Exception
- Description of Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
|