Package org.nuxeo.runtime.stream
Class StreamProbe
- java.lang.Object
-
- org.nuxeo.runtime.stream.StreamProbe
-
-
Field Summary
Fields Modifier and Type Field Description protected Long
detected
protected static String
FAILURE_MESSAGE
protected static DateTimeFormatter
FORMATTER
protected io.dropwizard.metrics5.Counter
globalFailureCount
static Duration
STREAM_PROBE_DELAY_DEFAULT
static String
STREAM_PROBE_DELAY_PROPERTY
protected Duration
timeout
-
Constructor Summary
Constructors Constructor Description StreamProbe()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.dropwizard.metrics5.Counter
getCounter()
protected long
getFailures()
protected Duration
getTimeout()
void
reset()
Reset failure counter for testing purpose.ProbeStatus
run()
-
-
-
Field Detail
-
STREAM_PROBE_DELAY_PROPERTY
public static final String STREAM_PROBE_DELAY_PROPERTY
- See Also:
- Constant Field Values
-
STREAM_PROBE_DELAY_DEFAULT
public static final Duration STREAM_PROBE_DELAY_DEFAULT
-
FAILURE_MESSAGE
protected static final String FAILURE_MESSAGE
- See Also:
- Constant Field Values
-
globalFailureCount
protected io.dropwizard.metrics5.Counter globalFailureCount
-
detected
protected Long detected
-
timeout
protected Duration timeout
-
FORMATTER
protected static final DateTimeFormatter FORMATTER
-
-
Method Detail
-
run
public ProbeStatus run()
-
getTimeout
protected Duration getTimeout()
-
getFailures
protected long getFailures()
-
getCounter
protected io.dropwizard.metrics5.Counter getCounter()
-
reset
public void reset()
Reset failure counter for testing purpose.- Since:
- 11.1
-
-