org.apache.nutch.util
Class CommandRunner

java.lang.Object
  extended byorg.apache.nutch.util.CommandRunner

public class CommandRunner
extends Object


Constructor Summary
CommandRunner()
           
 
Method Summary
 void evaluate()
           
 String getCommand()
           
 boolean getDestroyOnTimeout()
           
 int getExitValue()
           
 Throwable getThrownError()
           
 int getTimeout()
           
 boolean getWaitForExit()
           
static void main(String[] args)
           
 void setCommand(String s)
           
 void setDestroyOnTimeout(boolean destroyOnTimeout)
           
 void setInputStream(InputStream is)
           
 void setStdErrorStream(OutputStream os)
           
 void setStdOutputStream(OutputStream os)
           
 void setTimeout(int timeout)
           
 void setWaitForExit(boolean waitForExit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandRunner

public CommandRunner()
Method Detail

getExitValue

public int getExitValue()

setCommand

public void setCommand(String s)

getCommand

public String getCommand()

setInputStream

public void setInputStream(InputStream is)

setStdOutputStream

public void setStdOutputStream(OutputStream os)

setStdErrorStream

public void setStdErrorStream(OutputStream os)

evaluate

public void evaluate()
              throws IOException
Throws:
IOException

getThrownError

public Throwable getThrownError()

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int timeout)

getDestroyOnTimeout

public boolean getDestroyOnTimeout()

setDestroyOnTimeout

public void setDestroyOnTimeout(boolean destroyOnTimeout)

getWaitForExit

public boolean getWaitForExit()

setWaitForExit

public void setWaitForExit(boolean waitForExit)

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2006 The Apache Software Foundation