Class ProbeManagerImpl
java.lang.Object
org.nuxeo.ecm.core.management.probes.ProbeManagerImpl
- All Implemented Interfaces:
ProbeManager,ProbeRunnerMBean
- Since:
- 5.4
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoExtractProbesName(Collection<ProbeInfo> runners) protected static LongdoGetDuration(Date fromDate, Date toDate) protected voiddoRun()protected voiddoRunProbe(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) intintintprotected voidgetStatusOrRunProbe(ProbeInfo probe, int refreshSeconds) voidregisterProbe(ProbeDescriptor descriptor) voidThis probe is taken into account for the healthCheckbooleanvoidunregisterProbe(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:
getAllProbeInfosin interfaceProbeManager
-
getInSuccessProbeInfos
- Specified by:
getInSuccessProbeInfosin interfaceProbeManager
-
getInFailureProbeInfos
- Specified by:
getInFailureProbeInfosin interfaceProbeManager
-
getProbeNames
- Specified by:
getProbeNamesin interfaceProbeRunnerMBean
-
getProbesCount
public int getProbesCount()- Specified by:
getProbesCountin interfaceProbeRunnerMBean
-
getProbesInError
- Specified by:
getProbesInErrorin interfaceProbeRunnerMBean
-
getProbesInErrorCount
public int getProbesInErrorCount()- Specified by:
getProbesInErrorCountin interfaceProbeRunnerMBean
-
getProbesInSuccess
- Specified by:
getProbesInSuccessin interfaceProbeRunnerMBean
-
getProbesInSuccessCount
public int getProbesInSuccessCount()- Specified by:
getProbesInSuccessCountin interfaceProbeRunnerMBean
-
getProbeInfo
- Specified by:
getProbeInfoin interfaceProbeManager
-
runAllProbes
public boolean runAllProbes()- Specified by:
runAllProbesin interfaceProbeRunnerMBean
-
runProbe
- Specified by:
runProbein interfaceProbeManager
-
runProbe
- Specified by:
runProbein interfaceProbeManager
-
getProbeInfo
- Specified by:
getProbeInfoin interfaceProbeManager
-
registerProbe
-
unregisterProbe
-
doRun
protected void doRun() -
doGetDuration
-
doRunProbe
-
registerProbeForHealthCheck
Description copied from interface:ProbeManagerThis probe is taken into account for the healthCheck- Specified by:
registerProbeForHealthCheckin interfaceProbeManager
-
getHealthCheckProbes
Description copied from interface:ProbeManagerList of probes evaluated for a health check- Specified by:
getHealthCheckProbesin interfaceProbeManager
-
getOrRunHealthChecks
Description copied from interface:ProbeManagerReturn 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:
getOrRunHealthChecksin interfaceProbeManager
-
getOrRunHealthCheck
Description copied from interface:ProbeManagerReturn the status of the given probe. The probe is run only if the last run was more than a short while ago- Specified by:
getOrRunHealthCheckin interfaceProbeManager- Throws:
IllegalArgumentException
-
getStatusOrRunProbe
-