Class CyclingApplicationMaster

java.lang.Object
org.scictrl.csshell.epics.server.application.AbstractApplication
org.scictrl.csshell.epics.server.application.cycling.CyclingApplicationMaster
All Implemented Interfaces:
Application, OnDemandValueProcessor.ValueProvider

public class CyclingApplicationMaster extends AbstractApplication

CyclingApplicationMaster class.

Author:
igor@scictrl.com
  • Constructor Details

    • CyclingApplicationMaster

      public CyclingApplicationMaster()
      Constructor.
  • Method Details

    • getCyclingParameters

      public final CyclingParameters getCyclingParameters(String name)

      getCyclingParameters.

      Parameters:
      name - a String object
      Returns:
      a CyclingParameters object
    • storeCyclingParameters

      public final void storeCyclingParameters(String name, CyclingParameters param)

      storeCyclingParameters.

      Parameters:
      name - a String object
      param - a CyclingParameters object
    • configure

      public void configure(String name, org.apache.commons.configuration.HierarchicalConfiguration config)
      Configures the internals of this application, provides reference to configuration with root inside applications tag. Server structure is not yet initialized, so does not have reference to Database, the Database reference will be available during activate call.
      Specified by:
      configure in interface Application
      Overrides:
      configure in class AbstractApplication
      Parameters:
      name - a String object
      config - configuration with room inside application tag.
    • activate

      public void activate()
      Application has now reference to Database. Application might want to connect to other records on this server or PVs on other servers. This can not be done until all records from configuration has been loaded. Call to this method signals application that records has been loaded and linking to other values can be commenced.
      Specified by:
      activate in interface Application
      Overrides:
      activate in class AbstractApplication
    • notifyLinkChange

      protected void notifyLinkChange(String name)
      This method is called whenever record value changed for any record, which belongs to this application (it was added to the application AbstractApplication.addRecord(String, Record)). Implementation class should override this method to intercept the update.
      Overrides:
      notifyLinkChange in class AbstractApplication
      Parameters:
      name - the name of record, that triggered change.
    • notifyRecordChange

      protected void notifyRecordChange(String name, boolean alarmOnly)
      This method is called whenever record value changed for any record, which belongs to this application (it was added to the application AbstractApplication.addRecord(String, Record)). Implementation class should override this method to intercept the update.
      Overrides:
      notifyRecordChange in class AbstractApplication
      Parameters:
      name - the name of record, that triggered change.
      alarmOnly - if true then only alarm has been changed
    • notifyRecordWrite

      protected void notifyRecordWrite(String name)
      This method is called whenever record value has been written for any record, which belongs to this application (it was added to the application AbstractApplication.addRecord(String, Record)). Implementation class should override this method to intercept the update.
      Overrides:
      notifyRecordWrite in class AbstractApplication
      Parameters:
      name - the name of record, that triggered change.