Package gda.beamline.health
Class ServerCondition
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.beamline.health.ComponentHealthConditionBase
gda.beamline.health.ServerCondition
- All Implemented Interfaces:
ComponentHealthCondition,Configurable,Findable
- Direct Known Subclasses:
RateLimitedServerCondition
Base class for checking that a server/service is running
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class gda.beamline.health.ComponentHealthConditionBase
configure, getCurrentState, getDescription, getErrorMessage, getHealthState, isCritical, isEnabled, setCritical, setDescription, setEnabled, setErrorMessage, toStringMethods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, isConfigured, reconfigure, setConfigured
-
Constructor Details
-
ServerCondition
public ServerCondition()
-
-
Method Details
-
getDefaultErrorMessage
- Overrides:
getDefaultErrorMessagein classComponentHealthConditionBase
-
readCurrentState
- Specified by:
readCurrentStatein classComponentHealthConditionBase
-
calculateHealthState
- Specified by:
calculateHealthStatein classComponentHealthConditionBase
-
isRunning
protected abstract boolean isRunning()
-