public class AdbProcess extends Object implements org.echocat.jomon.process.GeneratedProcess<String,Long>
| Modifier and Type | Class and Description |
|---|---|
protected class |
AdbProcess.Receiver |
| Constructor and Description |
|---|
AdbProcess(long id,
String executable,
Iterable<String> arguments,
com.android.ddmlib.IDevice device,
org.echocat.jomon.runtime.util.Duration timeout,
org.echocat.jomon.process.listeners.stream.StreamListener<AdbProcess> listener) |
AdbProcess(long id,
String executable,
Iterable<String> arguments,
com.android.ddmlib.IDevice device,
org.echocat.jomon.runtime.util.Duration timeout,
org.echocat.jomon.process.listeners.stream.StreamListener<AdbProcess> listener,
org.echocat.jomon.runtime.util.Consumer<Exception,RuntimeException> callOnDone) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
exitValue() |
List<String> |
getArguments() |
String |
getExecutable() |
Long |
getId() |
protected OutputStream |
getOutputStreamOnListener() |
InputStream |
getStderr() |
OutputStream |
getStdin() |
InputStream |
getStdout() |
boolean |
isAlive() |
boolean |
isDaemon() |
void |
kill() |
protected Thread |
start() |
int |
waitFor() |
public AdbProcess(@Nonnegative long id, @Nonnull String executable, @Nonnull Iterable<String> arguments, @Nonnull com.android.ddmlib.IDevice device, @Nullable org.echocat.jomon.runtime.util.Duration timeout, @Nonnull org.echocat.jomon.process.listeners.stream.StreamListener<AdbProcess> listener)
public AdbProcess(@Nonnegative long id, @Nonnull String executable, @Nonnull Iterable<String> arguments, @Nonnull com.android.ddmlib.IDevice device, @Nullable org.echocat.jomon.runtime.util.Duration timeout, @Nonnull org.echocat.jomon.process.listeners.stream.StreamListener<AdbProcess> listener, @Nullable org.echocat.jomon.runtime.util.Consumer<Exception,RuntimeException> callOnDone)
public int waitFor()
throws InterruptedException
waitFor in interface org.echocat.jomon.process.GeneratedProcess<String,Long>InterruptedExceptionpublic int exitValue()
throws IllegalStateException
exitValue in interface org.echocat.jomon.process.GeneratedProcess<String,Long>IllegalStateExceptionpublic boolean isAlive()
public boolean isDaemon()
public void kill()
throws IOException
kill in interface org.echocat.jomon.process.GeneratedProcess<String,Long>IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.echocat.jomon.process.GeneratedProcess<String,Long>IOException@Nullable public Long getId()
getId in interface org.echocat.jomon.runtime.util.IdEnabled<Long>@Nonnull public OutputStream getStdin() throws IOException
getStdin in interface org.echocat.jomon.process.StreamsIOException@Nonnull public InputStream getStdout() throws IOException
getStdout in interface org.echocat.jomon.process.StreamsIOException@Nonnull public InputStream getStderr() throws IOException
getStderr in interface org.echocat.jomon.process.StreamsIOException@Nonnull protected OutputStream getOutputStreamOnListener()
Copyright © 2016 echocat. All rights reserved.