org.sonar.commons.commands
Class CommandTask

java.lang.Object
  extended by org.sonar.commons.commands.CommandTask
All Implemented Interfaces:
java.lang.Runnable

public class CommandTask
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
CommandTask()
           
CommandTask(java.lang.String... args)
           
 
Method Summary
 java.lang.String getDirectory()
           
 java.lang.String getErrorOutput()
           
 CommandExceptionNotifier getNotifier()
           
 java.lang.String getOutput()
           
 long getTimeout()
           
 org.sonar.commons.commands.TimeOutTask getTimeOutTask()
           
 boolean isEnableCollectOutput()
           
 boolean otherExceptionCatched()
           
 void run()
           
 void setDirectory(java.lang.String directory)
           
 void setEnableCollectOutput(boolean enableCollectOutput)
           
 void setNotifier(CommandExceptionNotifier notifier)
           
 void setTimeout(long timeout)
           
 void setTimeOutTask(org.sonar.commons.commands.TimeOutTask timeOutTask)
           
 boolean timeoutExceptionCatched()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandTask

public CommandTask()

CommandTask

public CommandTask(java.lang.String... args)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

timeoutExceptionCatched

public boolean timeoutExceptionCatched()

otherExceptionCatched

public boolean otherExceptionCatched()

getTimeout

public long getTimeout()

setTimeout

public void setTimeout(long timeout)

getNotifier

public CommandExceptionNotifier getNotifier()

setNotifier

public void setNotifier(CommandExceptionNotifier notifier)

getTimeOutTask

public org.sonar.commons.commands.TimeOutTask getTimeOutTask()

setTimeOutTask

public void setTimeOutTask(org.sonar.commons.commands.TimeOutTask timeOutTask)

getOutput

public java.lang.String getOutput()
                           throws java.io.IOException
Throws:
java.io.IOException

getErrorOutput

public java.lang.String getErrorOutput()
                                throws java.io.IOException
Throws:
java.io.IOException

getDirectory

public java.lang.String getDirectory()

setDirectory

public void setDirectory(java.lang.String directory)

isEnableCollectOutput

public boolean isEnableCollectOutput()

setEnableCollectOutput

public void setEnableCollectOutput(boolean enableCollectOutput)


Copyright © 2007-2008 hortis. All Rights Reserved.