Class ServiceMasterControl

java.lang.Object
uk.ac.manchester.spinnaker.alloc.ServiceMasterControl

@Service("control") @ManagedResource("Spalloc:type=ServiceMasterControl,name=control") public class ServiceMasterControl extends Object
Control over general aspects of the service's manageability. Not exposed as part of service because this includes the bits that shut the service off when disabled.
Author:
Donal Fellows
  • Constructor Details

    • ServiceMasterControl

      @Autowired public ServiceMasterControl(SpallocProperties properties)
      Create an instance.
      Parameters:
      properties - The service properties.
  • Method Details

    • isPaused

      @ManagedAttribute(description="Whether periodic tasks should not run.") public boolean isPaused()
      Returns:
      Whether periodic tasks should not run.
    • setPaused

      public void setPaused(boolean paused)
      Parameters:
      paused - Whether periodic tasks should not run.
    • addPausedListener

      public void addPausedListener(PropertyChangeListener listener)
      Add a listener to the paused property.
      Parameters:
      listener - The listener to add.
    • removePausedListener

      public void removePausedListener(PropertyChangeListener listener)
      Remove a listener from the paused property.
      Parameters:
      listener - The listener to remove.
    • isUseDummyBMP

      @ManagedAttribute(description="Whether the service actually talks to BMPs; when using a dummy, all actual hardware is ignored.") public boolean isUseDummyBMP()
      Returns:
      Whether to use dummy transceivers for talking to the BMPs.
    • setUseDummyBMP

      public void setUseDummyBMP(boolean dummyBMP)
      Parameters:
      dummyBMP - Whether to use dummy transceivers for talking to the BMPs.
    • addUseDummyBMPListener

      public void addUseDummyBMPListener(PropertyChangeListener listener)
      Add a listener to the useDummyBMP property.
      Parameters:
      listener - The listener to add.
    • removeUseDummyBMPListener

      public void removeUseDummyBMPListener(PropertyChangeListener listener)
      Remove a listener from the useDummyBMP property.
      Parameters:
      listener - The listener to remove.