- All Implemented Interfaces:
- org.apache.felix.hc.api.HealthCheck
@Property(name="hc.name",value="Synchronized Clocks",description="Health Check name",label="Name") @Property(name="hc.tags",unbounded=ARRAY,description="Health Check tags",label="Tags") @Property(name="hc.mbean.name",value="slingDiscoveryOakSynchronizedClocks",description="Health Check MBean name",label="MBean name")
@Service(value=org.apache.felix.hc.api.HealthCheck.class)
public class SynchronizedClocksHealthCheck
extends java.lang.Object
implements org.apache.felix.hc.api.HealthCheck
HealthCheck that builds on-top of DocumentNodeStore's
determineServerTimeDifferenceMillis method which checks how much the local
time differs from the DocumentStore's time. It then applies low- and
high-water marks to that time difference:
- if the value is higher than the high-water mark (5sec by default), then
it issues a critical
- if the value is lower than the high-water but higher than the low-water
mark (1sec by default), then it issues only a warn
- if the value is lower than the low-water mark, then it issues only an
info