Class ProbeManagerImpl
java.lang.Object
org.nuxeo.ecm.core.management.probes.ProbeManagerImpl
- All Implemented Interfaces:
ProbeManager
,ProbeRunnerMBean
- Since:
- 5.4
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoExtractProbesName
(Collection<ProbeInfo> runners) protected static Long
doGetDuration
(Date fromDate, Date toDate) protected void
doRun()
protected void
doRunProbe
(ProbeInfo probe) List of probes evaluated for a health checkgetOrRunHealthCheck
(String name) Return the status of the given probe.Return the status of all the probes evaluated for a healthCheck.getProbeInfo
(Class<? extends Probe> probeClass) getProbeInfo
(String name) int
int
int
protected void
getStatusOrRunProbe
(ProbeInfo probe, int refreshSeconds) void
registerProbe
(ProbeDescriptor descriptor) void
This probe is taken into account for the healthCheckboolean
void
unregisterProbe
(ProbeDescriptor descriptor)
-
Field Details
-
log
protected static final org.apache.logging.log4j.Logger log -
DEFAULT_HEALTH_CHECK_INTERVAL_SECONDS_PROPERTY
- See Also:
-
DEFAULT_HEALTH_CHECK_INTERVAL_SECONDS
- See Also:
-
infosByTypes
-
infosByShortcuts
-
probesByShortcuts
-
probesForHealthCheck
-
failed
-
succeed
-
-
Constructor Details
-
ProbeManagerImpl
public ProbeManagerImpl()
-
-
Method Details
-
doExtractProbesName
-
getAllProbeInfos
- Specified by:
getAllProbeInfos
in interfaceProbeManager
-
getInSuccessProbeInfos
- Specified by:
getInSuccessProbeInfos
in interfaceProbeManager
-
getInFailureProbeInfos
- Specified by:
getInFailureProbeInfos
in interfaceProbeManager
-
getProbeNames
- Specified by:
getProbeNames
in interfaceProbeRunnerMBean
-
getProbesCount
public int getProbesCount()- Specified by:
getProbesCount
in interfaceProbeRunnerMBean
-
getProbesInError
- Specified by:
getProbesInError
in interfaceProbeRunnerMBean
-
getProbesInErrorCount
public int getProbesInErrorCount()- Specified by:
getProbesInErrorCount
in interfaceProbeRunnerMBean
-
getProbesInSuccess
- Specified by:
getProbesInSuccess
in interfaceProbeRunnerMBean
-
getProbesInSuccessCount
public int getProbesInSuccessCount()- Specified by:
getProbesInSuccessCount
in interfaceProbeRunnerMBean
-
getProbeInfo
- Specified by:
getProbeInfo
in interfaceProbeManager
-
runAllProbes
public boolean runAllProbes()- Specified by:
runAllProbes
in interfaceProbeRunnerMBean
-
runProbe
- Specified by:
runProbe
in interfaceProbeManager
-
runProbe
- Specified by:
runProbe
in interfaceProbeManager
-
getProbeInfo
- Specified by:
getProbeInfo
in interfaceProbeManager
-
registerProbe
-
unregisterProbe
-
doRun
protected void doRun() -
doGetDuration
-
doRunProbe
-
registerProbeForHealthCheck
Description copied from interface:ProbeManager
This probe is taken into account for the healthCheck- Specified by:
registerProbeForHealthCheck
in interfaceProbeManager
-
getHealthCheckProbes
Description copied from interface:ProbeManager
List of probes evaluated for a health check- Specified by:
getHealthCheckProbes
in interfaceProbeManager
-
getOrRunHealthChecks
Description copied from interface:ProbeManager
Return the status of all the probes evaluated for a healthCheck. The probes are run if the last run was more than a short while ago- Specified by:
getOrRunHealthChecks
in interfaceProbeManager
-
getOrRunHealthCheck
Description copied from interface:ProbeManager
Return the status of the given probe. The probe is run only if the last run was more than a short while ago- Specified by:
getOrRunHealthCheck
in interfaceProbeManager
- Throws:
IllegalArgumentException
-
getStatusOrRunProbe
-