Class AppendAndAliasPV
- java.lang.Object
-
- org.epics.archiverappliance.mgmt.bpl.AppendAndAliasPV
-
- All Implemented Interfaces:
BPLAction
public class AppendAndAliasPV extends Object implements BPLAction
Appends the data for an older PV into a newer PV. The older PV is deleted and an alias is added mapping the older PV into the newer PV.All of these steps are driven by the destination appliance. The sequence of steps are- Make sure the DBR Type's for both PVs are the same.
- Make sure the older PV and newer PV's are paused.
- Consolidate data for both older and newer PV to the specified store (LTS).
- Copy data from old PV until earliest timestamp of new PV as temporary PV
- Copy data from new PV from earliest timestamp of new PV into temporary PV
- Rename temporary PV to new PV
- Delete old PV
- Add alias for old PV pointing to new PV
- Author:
- mshankar
Access using:http://mgmt_url/bpl/appendAndAliasPV
- This BPL appends the data for an older PV into a newer PV. The older PV is deleted and an alias mapping the older PV name to the new PV is added. - olderpv The name of the older pv. The data for this PV will be appended to the newer PV and then deleted.
- newerpv The name of the newer pv.
- storage The name of the store until which we'll consolidate data before appending. This is typically a string like LTS.
-
-
Constructor Summary
Constructors Constructor Description AppendAndAliasPV()
-
Method Summary
Modifier and Type Method Description void
execute(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, ConfigService configService)
-
-
-
Method Detail
-
execute
public void execute(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, ConfigService configService) throws IOException
- Specified by:
execute
in interfaceBPLAction
- Throws:
IOException
-
-