- All Implemented Interfaces:
public class ExecutePolicy extends Object implements AutoCloseableGiven the information computed by the engine about the PV, compute the archiving policy using policies.py Information to the policies.py is passed in as a dictionary with these keys
dbrtype-- The ArchDBRType of the PV
eventRate-- The sampled event rate in events per second.
eventCount-- The total number of events.
storageRate-- The sampled storage in bytes per seconds.
aliasName-- The value of the .NAME field for aliases
policyName-- If the user has overridden the policy when requesting archiving, this is the name of the policy
extra fieldsare use the fieldName as the key (for example, ADEL comes in as .ADEL). The result of policy execution is a another dictionary with these keys
samplingPeriod-- The sampling period to use for this PV.
sampling methodto use for this PV.
policyName-- The name of the policy that was used for this PV.
controlPV-- Another PV that can be used to conditionally archive this PV.
dataStores-- An array of StoragePlugin URL's that can be parsed by
StoragePluginURLParser. These form the stages of data storage for this PV.
archiveFields-- A optional array of fields that will be archived as part of archiving the .VAL field for this PV.
appliance-- Optional; assign this PV to this appliance. This is a string and is the identity of the appliance you want to assign this PV to.
public PolicyConfig computePolicyForPV(String pvName, HashMap<String,Object> pvInfo) throws IOExceptionCompute the policy for a PV
pvName- The name of PV.