Class PvaArchivePVAction
java.lang.Object
org.epics.archiverappliance.mgmt.pva.actions.PvaArchivePVAction
- All Implemented Interfaces:
PvaAction
Add one or more pvs to the archiver.
The requests for archiving pv's, the request consists of an NTTable with a list of pv's to be archived, optional attributes include sampling period and,or samplingmethod
example: request epics:nt/NTTable:1.0
- string[] labels [pv,samplingperiod,samplingmethod]
- structure value
- string[] pv [mshankar:arch:sine,mshankar:arch:cosine]
- string[] samplingperiod [1.0,2.0]
- string[] samplingmethod [SCAN,MONITOR]
- string descriptor archivePVs
result epics:nt/NTTable:1.0
- string[] labels [pvName,status]
- structure value
- string[] pvName [mshankar:arch:sine,mshankar:arch:cosine]
- string[] status [Archive request submitted,Archive request submitted]
Based on ArchivePVAction
- Author:
- Kunal Shroff, mshankar
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Name of the actionstatic org.epics.pva.data.nt.PVATableparseArchivePvResult(String resultString) example string returned { "pvName": "mshankar:arch:sine", "status": "Archive request submitted" } { "pvName": "mshankar:arch:cosine", "status": "Archive request submitted" }org.epics.pva.data.PVAStructurerequest(org.epics.pva.data.PVAStructure args, ConfigService configService) Handles an RPC request to the archiver.
-
Field Details
-
logger
public static final org.apache.logging.log4j.Logger logger -
NAME
- See Also:
-
-
Constructor Details
-
PvaArchivePVAction
public PvaArchivePVAction()
-
-
Method Details
-
getName
Description copied from interface:PvaActionName of the action -
request
public org.epics.pva.data.PVAStructure request(org.epics.pva.data.PVAStructure args, ConfigService configService) throws PvaActionException Description copied from interface:PvaActionHandles an RPC request to the archiver.- Specified by:
requestin interfacePvaAction- Parameters:
args- Input argumentsconfigService- Current config service- Throws:
PvaActionException- which is then passed to the serverPV to return the error to the user.
-
parseArchivePvResult
public static org.epics.pva.data.nt.PVATable parseArchivePvResult(String resultString) throws ResponseConstructionException example string returned { "pvName": "mshankar:arch:sine", "status": "Archive request submitted" } { "pvName": "mshankar:arch:cosine", "status": "Archive request submitted" }- Parameters:
resultString- input string- Returns:
- Table of queries
- Throws:
ResponseConstructionException
-