public interface ILogCollector
| Modifier and Type | Method and Description |
|---|---|
byte[] |
collect()
Gets data from streams and clears streams state.
|
java.lang.String |
contentType()
HTTP Content-Type describing data type of collect() result.
|
ILogStream |
createStream(Labels labels)
Creates a new stream.
|
int |
waitForLogs(long timeout)
Stop thread until a new log will occur.
|
ILogStream createStream(Labels labels)
labels - Unique set of labels.byte[] collect()
java.lang.String contentType()
int waitForLogs(long timeout)
throws java.lang.InterruptedException
timeout - Time in milliseconds.java.lang.InterruptedException - When given thread has been interrupted.