Remote Systems
v6.4.1

com.ibm.etools.systems.dstore.miners.command
Class CommandMinerThread

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.ibm.etools.systems.dstore.core.miners.miner.MinerThread
          extended bycom.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.


Field Summary
static String Copyright
           
 
Fields inherited from class com.ibm.etools.systems.dstore.core.miners.miner.MinerThread
_isCancelled
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CommandMinerThread(DataElement theElement, String invocation, DataElement status, Patterns thePatterns, CommandMiner.CommandMinerDescriptors descriptors)
           
 
Method Summary
 void cleanupThread()
          Implement this method to provide any cleanup that is required after all the work is done.
 DataElement createObject(DataElement type, String text)
           
 DataElement createObject(String type, String text)
          private void createObject (String,String) Create a simple object with no source information
 void createPrompt(String line, String fileName)
           
 boolean doThreadedWork()
          Implement this method to provide the work implementation of this thread.
 String getCWD()
           
 Process getProcess()
           
 void initializeThread()
          Implement this method to provide initialization of this thread.
 void interpretLine(String line, boolean stdError)
           
 String removeWhitespace(String theLine)
           
 void sendBreak()
           
 void sendExit()
           
 void sendInput(String input)
           
 
Methods inherited from class com.ibm.etools.systems.dstore.core.miners.miner.MinerThread
run, stopThread
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

CommandMinerThread

public CommandMinerThread(DataElement theElement,
                          String invocation,
                          DataElement status,
                          Patterns thePatterns,
                          CommandMiner.CommandMinerDescriptors descriptors)
Method Detail

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)

Remote Systems
v6.4.1

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.