Package gda.device.detector
Class DummyDAServerStatusChecker
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.ScannableBase
gda.device.detector.DAServerStatusChecker
gda.device.detector.DummyDAServerStatusChecker
- All Implemented Interfaces:
Device,Scannable,Configurable,Findable,gda.observable.IObservable
-
Field Summary
Fields inherited from class gda.device.scannable.ScannableBase
__doc__, DEFAULT_INPUT_NAME, DEFAULT_OUTPUT_FORMAT, extraNames, inputNames, level, outputFormatFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, VALUE_UNAVAILABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckStatus(String host, int port) Check DAServer running on specified host and port to ensure it is available and produces correct response.booleanvoidsetRunning(boolean running) Methods inherited from class gda.device.detector.DAServerStatusChecker
asynchronousMoveTo, atScanStart, checkStatus, configure, getDaServer, getStatusMessage, isBusy, rawGetPosition, setDaServer, setStatusMessageMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, checkPositionValid, externalToInternal, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, moveTo, rawAsynchronousMoveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, throwExceptionIfInvalidTarget, toFormattedString, toString, validateScannable, valueUnavailableString, waitWhileBusy, waitWhileBusyMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
DummyDAServerStatusChecker
public DummyDAServerStatusChecker()
-
-
Method Details
-
checkStatus
Description copied from class:DAServerStatusCheckerCheck DAServer running on specified host and port to ensure it is available and produces correct response. statusMessage contains more information about the result of the check.- Overrides:
checkStatusin classDAServerStatusChecker- Parameters:
host-port-- Returns:
- true if DAServer is running ok, false otherwise
-
isRunning
public boolean isRunning() -
setRunning
public void setRunning(boolean running)
-