RSE
Release 1.0

org.eclipse.rse.dstore.universal.miners.command
Class CommandMinerThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.eclipse.dstore.core.miners.miner.MinerThread
          extended byorg.eclipse.rse.dstore.universal.miners.command.CommandMinerThread
All Implemented Interfaces:
Runnable

public class CommandMinerThread
extends org.eclipse.dstore.core.miners.miner.MinerThread

CommandMinerThread is used for running and handling io for shell commands in a thread.


Field Summary
 
Fields inherited from class org.eclipse.dstore.core.miners.miner.MinerThread
_isCancelled
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CommandMinerThread(org.eclipse.dstore.core.model.DataElement theElement, String invocation, org.eclipse.dstore.core.model.DataElement status, Patterns thePatterns, CommandMiner.CommandMinerDescriptors descriptors)
           
 
Method Summary
 void cleanupThread()
           
 org.eclipse.dstore.core.model.DataElement createObject(org.eclipse.dstore.core.model.DataElement type, String text)
           
 org.eclipse.dstore.core.model.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()
           
 String getCWD()
           
 Process getProcess()
           
 void initializeThread()
           
 void interpretLine(String line, boolean stdError)
           
 void queryCWD()
           
 String removeWhitespace(String theLine)
           
 void sendBreak()
           
 void sendExit()
           
 void sendInput(String input)
           
 
Methods inherited from class org.eclipse.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
 

Constructor Detail

CommandMinerThread

public CommandMinerThread(org.eclipse.dstore.core.model.DataElement theElement,
                          String invocation,
                          org.eclipse.dstore.core.model.DataElement status,
                          Patterns thePatterns,
                          CommandMiner.CommandMinerDescriptors descriptors)
Method Detail

getProcess

public Process getProcess()

getCWD

public String getCWD()

queryCWD

public void queryCWD()

sendBreak

public void sendBreak()

sendInput

public void sendInput(String input)

doThreadedWork

public boolean doThreadedWork()

initializeThread

public void initializeThread()

sendExit

public void sendExit()

cleanupThread

public void cleanupThread()

interpretLine

public void interpretLine(String line,
                          boolean stdError)

createPrompt

public void createPrompt(String line,
                         String fileName)

removeWhitespace

public String removeWhitespace(String theLine)

createObject

public org.eclipse.dstore.core.model.DataElement createObject(String type,
                                                              String text)
private void createObject (String,String) Create a simple object with no source information


createObject

public org.eclipse.dstore.core.model.DataElement createObject(org.eclipse.dstore.core.model.DataElement type,
                                                              String text)

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.