public class Logcat extends Object implements AutoCloseable, org.echocat.jomon.runtime.util.IdEnabled<Long>
| Constructor and Description |
|---|
Logcat(com.google.common.base.Predicate<com.android.ddmlib.IDevice> devicePredicate,
File adbExecutable) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected static org.echocat.jomon.process.listeners.stream.StreamListener<AdbProcess> |
defaultStreamListener() |
protected org.echocat.jomon.runtime.util.Consumer<com.android.ddmlib.IDevice,Exception> |
deviceConsumer() |
File |
getAdbExecutable() |
org.echocat.jomon.runtime.util.Duration |
getAdbTimeout() |
List<String> |
getArguments() |
com.google.common.base.Predicate<com.android.ddmlib.IDevice> |
getDevicePredicate() |
org.echocat.jomon.runtime.util.Duration |
getDeviceTimeout() |
Long |
getId() |
AdbProcess |
getProcess() |
org.echocat.jomon.process.listeners.stream.StreamListener<?> |
getStreamListener() |
boolean |
isLogStart() |
boolean |
isLogStartupDone() |
boolean |
isLogTermination() |
void |
start() |
protected Logcat |
thisObject() |
Logcat |
whichLogsStart(boolean log) |
Logcat |
whichLogsStartupDone(boolean log) |
Logcat |
whichLogsTermination(boolean log) |
Logcat |
withAdbTimeout(org.echocat.jomon.runtime.util.Duration duration) |
Logcat |
withAdbTimeout(String duration) |
Logcat |
withArguments(Iterable<String> arguments) |
Logcat |
withArguments(String... arguments) |
Logcat |
withDeviceTimeout(org.echocat.jomon.runtime.util.Duration duration) |
Logcat |
withDeviceTimeout(String duration) |
Logcat |
withStreamListener(org.echocat.jomon.process.listeners.stream.StreamListener<AdbProcess> streamListener) |
Logcat |
withStreamListener(String streamListener) |
@Nonnull protected org.echocat.jomon.runtime.util.Consumer<com.android.ddmlib.IDevice,Exception> deviceConsumer()
@Nonnull public com.google.common.base.Predicate<com.android.ddmlib.IDevice> getDevicePredicate()
@Nonnegative public Long getId()
getId in interface org.echocat.jomon.runtime.util.IdEnabled<Long>@Nullable public AdbProcess getProcess()
public void close()
throws Exception
close in interface AutoCloseableException@Nonnull public Logcat withDeviceTimeout(@Nonnull org.echocat.jomon.runtime.util.Duration duration)
@Nonnull public Logcat withAdbTimeout(@Nonnull org.echocat.jomon.runtime.util.Duration duration)
@Nonnull public Logcat withStreamListener(@Nonnull org.echocat.jomon.process.listeners.stream.StreamListener<AdbProcess> streamListener)
@Nonnull public org.echocat.jomon.process.listeners.stream.StreamListener<?> getStreamListener()
public boolean isLogStart()
public boolean isLogStartupDone()
public boolean isLogTermination()
@Nonnull public org.echocat.jomon.runtime.util.Duration getDeviceTimeout()
@Nonnull public org.echocat.jomon.runtime.util.Duration getAdbTimeout()
@Nonnull protected static org.echocat.jomon.process.listeners.stream.StreamListener<AdbProcess> defaultStreamListener()
Copyright © 2016 echocat. All rights reserved.