Class DAServerStatusChecker

All Implemented Interfaces:
Device, Scannable, Configurable, Findable, gda.observable.IObservable
Direct Known Subclasses:
DummyDAServerStatusChecker

public class DAServerStatusChecker extends ScannableBase
  • Constructor Details

    • DAServerStatusChecker

      public DAServerStatusChecker()
  • Method Details

    • configure

      public void configure()
      Description copied from class: ConfigurableBase
      Default 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:
      configure in interface Configurable
      Overrides:
      configure in class ConfigurableBase
    • atScanStart

      public void atScanStart() throws DeviceException
      Description copied from class: ScannableBase
      Called for every Scannable at the start of a group of nested scans (or a single scan if that is the case) Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.
      Specified by:
      atScanStart in interface Scannable
      Overrides:
      atScanStart in class ScannableBase
      Throws:
      DeviceException - if DAServer is not available
      See Also:
    • checkStatus

      public boolean checkStatus()
      Check DAServer is available and running correctly, by running checkStatus(String, int) using host and port information from DAServer reference (set using setDaServer(DAServer)).
      Returns:
      true if DAServer is available
    • checkStatus

      public boolean checkStatus(String host, int port)
      Check 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.
      Parameters:
      host -
      port -
      Returns:
      true if DAServer is running ok, false otherwise
    • isBusy

      public boolean isBusy() throws DeviceException
      Description copied from interface: Scannable
      Check if the Scannable is moving/operating.
      Returns:
      true - if operation carried out by moveTo has not completed yet
      Throws:
      DeviceException
    • asynchronousMoveTo

      public void asynchronousMoveTo(Object position)
      Description copied from class: ScannableBase
      Trigger a move/operation and return immediately. Implementations of this method should be non-blocking to allow concurrent motion; the isBusy method will be used to determine when the move has completed. Converts the external (user) position to an internal position and passes this to rawAsynchronousMoveTo.
      Specified by:
      asynchronousMoveTo in interface Scannable
      Overrides:
      asynchronousMoveTo in class ScannableBase
      Parameters:
      position - Position to move to should have an element for each input field.
    • rawGetPosition

      public Object rawGetPosition() throws DeviceException
      Description copied from class: ScannableBase
      [Consider abstract] Read the position in its internal (user) representation.
      Overrides:
      rawGetPosition in class ScannableBase
      Returns:
      the value represented by this Scannable
      Throws:
      DeviceException
      See Also:
    • getDaServer

      public DAServer getDaServer()
    • setDaServer

      public void setDaServer(DAServer daServer)
    • getStatusMessage

      public String getStatusMessage()
    • setStatusMessage

      public void setStatusMessage(String statusMessage)