Package gda.beamline.health
Class RateLimitedServerCondition
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.beamline.health.ComponentHealthConditionBase
gda.beamline.health.ServerCondition
gda.beamline.health.RateLimitedServerCondition
- All Implemented Interfaces:
ComponentHealthCondition,Configurable,Findable
- Direct Known Subclasses:
ActiveMQServerCondition,DAServerCondition,IspybServiceCondition,MalcolmProcessCondition,ProcessingServerCondition
Base class for
ServerConditions that require rate limitation-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.protected booleanprotected abstract booleanvoidsetMinCheckTime(double minCheckTime) Methods inherited from class gda.beamline.health.ServerCondition
calculateHealthState, getDefaultErrorMessage, readCurrentStateMethods inherited from class gda.beamline.health.ComponentHealthConditionBase
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
-
RateLimitedServerCondition
public RateLimitedServerCondition()
-
-
Method Details
-
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classComponentHealthConditionBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
isRunning
protected boolean isRunning()- Specified by:
isRunningin classServerCondition
-
isServiceRunning
protected abstract boolean isServiceRunning() -
setMinCheckTime
public void setMinCheckTime(double minCheckTime)
-