Class MgmtRuntimeState


  • public class MgmtRuntimeState
    extends Object
    Runtime state for the mgmt app.
    Author:
    mshankar
    • Constructor Detail

      • MgmtRuntimeState

        public MgmtRuntimeState​(ConfigService configService)
    • Method Detail

      • startPVWorkflow

        public void startPVWorkflow​(String pvName)
                             throws IOException
        Initiate archive PV workflow for PV.
        Parameters:
        pvName - The name of PV.
        Throws:
        IOException -  
      • getPVsPendingInWorkflow

        public int getPVsPendingInWorkflow()
      • computeMetaInfo

        public void computeMetaInfo​(PubSubEvent pubSubEvent)
      • abortAllAndRestartArchiveRequestsThread

        public void abortAllAndRestartArchiveRequestsThread()
                                                     throws IOException
        Abort all pending PV requests and then restart the thread. Use only if your main archive thread seems to be stuck.
        Throws:
        IOException
      • haveChildComponentsStartedUp

        public boolean haveChildComponentsStartedUp()
      • isPVInWorkflow

        public boolean isPVInWorkflow​(String pvName)
        Is the specified PV in the mgmt workflow?
        Parameters:
        pvName - The name of PV.
        Returns:
        boolean True or False
      • getArchivePVWorkflowBatchSize

        public int getArchivePVWorkflowBatchSize()
        Get the batch size for PV archive requests workflow. We throttle the archive PV workflow to this many PV's at a time to conserve resources and prevent CA storms. This can be configured using a property in archappl.properties.
        Returns:
        archivePVWorkflowBatchSize