public final class Command extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
Command.CommandListener
CommandListener
|
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
TIMEOUT |
| 构造器和说明 |
|---|
Command(int timeout,
String... params)
Get a Command
|
Command(String... params)
Execute a Command
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
cancel(Command command)
Cancel Test
|
static String |
command(Command command)
Command the test
|
static String |
command(Command command,
Command.CommandListener listener)
Command the test
|
static void |
dispose()
Dispose unbindService stopService
|
void |
removeListener()
Delete the callback CommandListener
|
static void |
restart()
Restart the Command Service
|
public static final int TIMEOUT
public Command(String... params)
params - params eg: "/system/bin/ping", "-c", "4", "-s", "100","www.qiujuer.net"public Command(int timeout,
String... params)
timeout - set this run timeOutparams - params eg: "/system/bin/ping", "-c", "4", "-s", "100","www.qiujuer.net"public static String command(Command command) throws Exception
command - CommandExceptionpublic static String command(Command command, Command.CommandListener listener) throws Exception
command - CommandExceptionpublic static void cancel(Command command)
public static void restart()
public static void dispose()
public void removeListener()