Class PvaArchivePVAction
- java.lang.Object
-
- org.epics.archiverappliance.mgmt.pva.actions.PvaArchivePVAction
-
- All Implemented Interfaces:
PvaAction
public class PvaArchivePVAction extends Object implements 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 onArchivePVAction
- Author:
- Kunal Shroff, mshankar
-
-
Constructor Summary
Constructors Constructor Description PvaArchivePVAction()
-
Method Summary
Modifier and Type Method Description String
getName()
Name of the actionstatic org.epics.nt.NTTable
parseArchivePvResult(String resultString)
example string returned { "pvName": "mshankar:arch:sine", "status": "Archive request submitted" } { "pvName": "mshankar:arch:cosine", "status": "Archive request submitted" }void
request(org.epics.pvdata.pv.PVStructure args, org.epics.pvaccess.server.rpc.RPCResponseCallback callback, ConfigService configService)
-
-
-
Field Detail
-
logger
public static final org.apache.log4j.Logger logger
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
request
public void request(org.epics.pvdata.pv.PVStructure args, org.epics.pvaccess.server.rpc.RPCResponseCallback callback, ConfigService configService)
-
parseArchivePvResult
public static org.epics.nt.NTTable parseArchivePvResult(String resultString)
example string returned { "pvName": "mshankar:arch:sine", "status": "Archive request submitted" } { "pvName": "mshankar:arch:cosine", "status": "Archive request submitted" }- Parameters:
resultString
-- Returns:
-
-