com.ibm.etools.systems.dstore.miners.command
Class CommandMinerThread
java.lang.Object
java.lang.Thread
com.ibm.etools.systems.dstore.core.miners.miner.MinerThread
com.ibm.etools.systems.dstore.miners.command.CommandMinerThread
- All Implemented Interfaces:
- Runnable
- public class CommandMinerThread
- extends MinerThread
CommandMinerThread is used for running and handling io for shell commands
in a thread.
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Copyright
public static final String Copyright
- See Also:
- Constant Field Values
CommandMinerThread
public CommandMinerThread(DataElement theElement,
String invocation,
DataElement status,
Patterns thePatterns,
CommandMiner.CommandMinerDescriptors descriptors)
getProcess
public Process getProcess()
getCWD
public String getCWD()
sendBreak
public void sendBreak()
sendInput
public void sendInput(String input)
doThreadedWork
public boolean doThreadedWork()
- Description copied from class:
MinerThread
- Implement this method to provide the work implementation of this thread.
This method gets called periodically by the miner thread so te work done
here must be atomic. Each time this is called a incremental unit of
work should be done. Once all the work is done, true should be
returned.
- Specified by:
doThreadedWork
in class MinerThread
- Returns:
- true if all the work is done.
initializeThread
public void initializeThread()
- Description copied from class:
MinerThread
- Implement this method to provide initialization of this thread.
- Specified by:
initializeThread
in class MinerThread
sendExit
public void sendExit()
cleanupThread
public void cleanupThread()
- Description copied from class:
MinerThread
- Implement this method to provide any cleanup that is required after
all the work is done.
- Specified by:
cleanupThread
in class MinerThread
interpretLine
public void interpretLine(String line,
boolean stdError)
createPrompt
public void createPrompt(String line,
String fileName)
removeWhitespace
public String removeWhitespace(String theLine)
createObject
public DataElement createObject(String type,
String text)
- private void createObject (String,String)
Create a simple object with no source information
createObject
public DataElement createObject(DataElement type,
String text)
Copyright © 2005 IBM Corp. All Rights Reserved.
Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.