Package org.nuxeo.runtime.stream
Class StreamProbe
- java.lang.Object
 - 
- org.nuxeo.runtime.stream.StreamProbe
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected Longdetectedprotected static StringFAILURE_MESSAGEprotected static DateTimeFormatterFORMATTERprotected io.dropwizard.metrics5.CounterglobalFailureCountstatic DurationSTREAM_PROBE_DELAY_DEFAULTstatic StringSTREAM_PROBE_DELAY_PROPERTYprotected Durationtimeout 
- 
Constructor Summary
Constructors Constructor Description StreamProbe() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.dropwizard.metrics5.CountergetCounter()protected longgetFailures()protected DurationgetTimeout()voidreset()Reset failure counter for testing purpose.ProbeStatusrun() 
 - 
 
- 
- 
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
 
 
 - 
 
 -