java.lang.Object | |
↳ | org.apache.helix.filestore.ExternalCommand |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LOG | |||||||||||
MODULE |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an external process from the command.
| |||||||||||
Creates an external process from the command.
| |||||||||||
Executes the external command in the given working directory and waits for it to be
finished.
| |||||||||||
Executes the external command in the given working directory and waits (until timeout
is elapsed) for it to be finished.
| |||||||||||
Returns the error as a string.
| |||||||||||
Returns the error as a string.
| |||||||||||
Returns the output as a string.
| |||||||||||
Returns the output as a string.
| |||||||||||
After creating the command, you have to start it...
| |||||||||||
Creates an external process from the command.
| |||||||||||
Properly waits until everything is complete: joins on the thread that
reads the output, joins on the thread that reads the error and finally
wait for the process to be finished.
| |||||||||||
Properly waits until everything is complete: joins on the thread that
reads the output, joins on the thread that reads the error and finally
wait for the process to be finished.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates an external process from the command. It is not started and you have to call start on it!
commands | the command to execute |
---|
Creates an external process from the command. It is not started and you have to call start on it!
commands | the command to execute |
---|
Executes the external command in the given working directory and waits for it to be finished.
workingDirectory | the root directory from where to run the command |
---|---|
command | the command to execute (should be relative to the working directory |
args | the arguments to the command |
IOException | |
---|---|
InterruptedException |
Executes the external command in the given working directory and waits (until timeout is elapsed) for it to be finished.
workingDirectory | the root directory from where to run the command |
---|---|
command | the command to execute (should be relative to the working directory |
timeout | the maximum amount of time to wait for this external command (in ms). If this value is less than or equal to 0, timeout is ignored |
args | the arguments to the command |
Returns the error as a string.
InterruptedException | |
UnsupportedEncodingException | |
InterruptedException |
Returns the error as a string. Uses encoding "UTF-8".
InterruptedException |
---|
Returns the output as a string.
InterruptedException | |
UnsupportedEncodingException | |
InterruptedException |
Returns the output as a string. Uses encoding "UTF-8".
InterruptedException |
---|
Creates an external process from the command. The command is executed.
commands | the commands to execute |
---|
IOException | if there is an error |
---|
Properly waits until everything is complete: joins on the thread that
reads the output, joins on the thread that reads the error and finally
wait for the process to be finished.
If the process has not completed before the timeout, throws a TimeoutException
TimeoutException | |
InterruptedException | |
TimeoutException |
Properly waits until everything is complete: joins on the thread that reads the output, joins on the thread that reads the error and finally wait for the process to be finished.
InterruptedException |
---|