org.kuali.common.util.service
Class DefaultExecContext

java.lang.Object
  extended by org.kuali.common.util.service.DefaultExecContext
All Implemented Interfaces:
ExecContext

public class DefaultExecContext
extends Object
implements ExecContext


Constructor Summary
DefaultExecContext()
           
 
Method Summary
 List<String> getArgs()
           
 String getExecutable()
           
 InputStream getInput()
           
 org.codehaus.plexus.util.cli.StreamConsumer getStandardErrConsumer()
           
 org.codehaus.plexus.util.cli.StreamConsumer getStandardOutConsumer()
           
 int getTimeoutInSeconds()
           
 File getWorkingDirectory()
           
 boolean isAddSystemEnvironment()
           
 void setAddSystemEnvironment(boolean addSystemEnvironment)
           
 void setArgs(List<String> args)
           
 void setExecutable(String executable)
           
 void setInput(InputStream input)
           
 void setStandardErrConsumer(org.codehaus.plexus.util.cli.StreamConsumer standardErrConsumer)
           
 void setStandardOutConsumer(org.codehaus.plexus.util.cli.StreamConsumer standardOutConsumer)
           
 void setTimeoutInSeconds(int timeoutInSeconds)
           
 void setWorkingDirectory(File workingDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExecContext

public DefaultExecContext()
Method Detail

getInput

public InputStream getInput()
Specified by:
getInput in interface ExecContext

setInput

public void setInput(InputStream input)

getExecutable

public String getExecutable()
Specified by:
getExecutable in interface ExecContext

setExecutable

public void setExecutable(String executable)

getArgs

public List<String> getArgs()
Specified by:
getArgs in interface ExecContext

setArgs

public void setArgs(List<String> args)

getTimeoutInSeconds

public int getTimeoutInSeconds()
Specified by:
getTimeoutInSeconds in interface ExecContext

setTimeoutInSeconds

public void setTimeoutInSeconds(int timeoutInSeconds)

getWorkingDirectory

public File getWorkingDirectory()
Specified by:
getWorkingDirectory in interface ExecContext

setWorkingDirectory

public void setWorkingDirectory(File workingDirectory)

getStandardOutConsumer

public org.codehaus.plexus.util.cli.StreamConsumer getStandardOutConsumer()
Specified by:
getStandardOutConsumer in interface ExecContext

setStandardOutConsumer

public void setStandardOutConsumer(org.codehaus.plexus.util.cli.StreamConsumer standardOutConsumer)

getStandardErrConsumer

public org.codehaus.plexus.util.cli.StreamConsumer getStandardErrConsumer()
Specified by:
getStandardErrConsumer in interface ExecContext

setStandardErrConsumer

public void setStandardErrConsumer(org.codehaus.plexus.util.cli.StreamConsumer standardErrConsumer)

isAddSystemEnvironment

public boolean isAddSystemEnvironment()
Specified by:
isAddSystemEnvironment in interface ExecContext

setAddSystemEnvironment

public void setAddSystemEnvironment(boolean addSystemEnvironment)


Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.