|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.sqoop.util.Executor
public final class Executor
Runs a process via Runtime.exec() and allows handling of stdout/stderr to be deferred to other threads.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
Method Summary | |
---|---|
static int |
exec(java.lang.String[] args)
Execute a program defined by the args array with default stream sinks that consume the program's output (to prevent it from blocking on buffers) and then ignore said output. |
static int |
exec(java.lang.String[] args,
AsyncSink outSink,
AsyncSink errSink)
Run a command via Runtime.exec(), with its stdout and stderr streams directed to be handled by threads generated by AsyncSinks. |
static int |
exec(java.lang.String[] args,
java.lang.String[] envp,
AsyncSink outSink,
AsyncSink errSink)
Run a command via Runtime.exec(), with its stdout and stderr streams directed to be handled by threads generated by AsyncSinks. |
static java.util.List<java.lang.String> |
getCurEnvpStrings()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Method Detail |
---|
public static int exec(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public static int exec(java.lang.String[] args, AsyncSink outSink, AsyncSink errSink) throws java.io.IOException
java.io.IOException
public static int exec(java.lang.String[] args, java.lang.String[] envp, AsyncSink outSink, AsyncSink errSink) throws java.io.IOException
java.io.IOException
public static java.util.List<java.lang.String> getCurEnvpStrings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |