Package org.epics.archiverappliance.mgmt
Class MgmtRuntimeState
java.lang.Object
org.epics.archiverappliance.mgmt.MgmtRuntimeState
Runtime state for the mgmt app.
- Author:
- mshankar
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAbort all pending PV requests and then restart the thread.booleanabortPVWorkflow(String pvName) voidcomponentStartedUp(ConfigService.WAR_FILE component) voidcomputeMetaInfo(PubSubEvent pubSubEvent) voidfinishedPVWorkflow(String pvName) intGet the batch size for PV archive requests workflow.intbooleanbooleanisPVInWorkflow(String pvName) Is the specified PV in the mgmt workflow?voidstartPVWorkflow(String pvName) Initiate archive PV workflow for PV.
-
Constructor Details
-
MgmtRuntimeState
-
-
Method Details
-
startPVWorkflow
Initiate archive PV workflow for PV.- Parameters:
pvName- The name of PV.- Throws:
IOException-
-
abortPVWorkflow
- Throws:
IOException
-
finishedPVWorkflow
- Throws:
IOException
-
getNeverConnectedRequests
-
getPVsPendingInWorkflow
public int getPVsPendingInWorkflow() -
computeMetaInfo
-
componentStartedUp
-
abortAllAndRestartArchiveRequestsThread
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
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
-