org.inria.myriads.snoozenode.executor
public final class ShellCommandExecuter extends Object implements ExecutorListener
Constructor and Description |
---|
ShellCommandExecuter(int timeout)
Shell command executir.
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute(String command)
Execute shell command.
|
void |
onCommandExecuted(boolean result)
Called upon command execution.
|
public ShellCommandExecuter(int timeout)
timeout
- The timeoutpublic boolean execute(String command)
command
- The command to executepublic void onCommandExecuted(boolean result)
onCommandExecuted
in interface ExecutorListener
result
- The resultCopyright © 2013. All Rights Reserved.