Class PulseService

java.lang.Object
org.lsst.ccs.services.PulseService
All Implemented Interfaces:
HasLifecycle, ServiceLifecycle, AgentService

public class PulseService extends Object implements ServiceLifecycle, HasLifecycle, AgentService
Simple JVM freeze detector stub. If this gets triggered for reasons that are not understood, detailed diagnostics should be added.
Author:
onoprien
  • Constructor Details

    • PulseService

      public PulseService()
  • Method Details

    • start

      public void start()
      Description copied from interface: HasLifecycle
      Called from the enclosing Subsystem. At the time it is called :
      • the PhaseState is INITIALIZING
      • connection with the messaging layer is effective, the enclosing subsystem has started StatusHeartBeat publication
      • the startup configuration has been loaded (if provided). IMPORTANT NOTE : This statement will not be true in future releases. Code that expect the startup configuration to be loaded should be moved from start to postStart.
      It is unnecessary to call super.start()
      Specified by:
      start in interface HasLifecycle
    • shutdown

      public void shutdown()
      Description copied from interface: HasLifecycle
      Called from the enclosing Subsystem when org.lsst.ccs.Subsystem#shutdown() has been called. At the time it is called PhaseState is CLOSING. It should be overridden to free non hardware related resources.
      Specified by:
      shutdown in interface HasLifecycle
    • getAgentServiceName

      public String getAgentServiceName()
      Description copied from interface: AgentService
      Get the name of this service. This name will be used to add the given service to the lookup tree.
      Specified by:
      getAgentServiceName in interface AgentService
      Returns:
      the AgentService name.