Class ApplianceAggregateInfo
java.lang.Object
org.epics.archiverappliance.config.ApplianceAggregateInfo
POJO facilitating various optimizations for BPL that uses appliance wide information.
The correct values for most of this is obtained by iterating thru the PVTypeInfo's and aggregating them.
To improve performance for business logic that takes the entire appliance into consideration, a few aggregated parameters are stored and maintained here.
There are no transactional guarantees with the information aggregated here; if the perfect/best information is desired, walk thru the PVTypeInfos.
This is available within the appliance for that appliance.
- Author:
- mshankar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInfoForPV(String pvName, PVTypeInfo typeInfo, ConfigService configService) clone()This returns a new ApplianceAggregateInfo that is the difference between this info and the other info.doubleGets the aggregated total computedEventRate for this appliancedoubleGets the aggregated pv count for this appliance.The storage impact is the impact of a PV on the particular store.doubleGets the aggregated total computedStorageRate for this appliancevoidsetTotalEventRate(double totalEventRate) voidsetTotalPVCount(double totalPVCount) voidsetTotalStorageImpact(HashMap<String, String> totalStorageImpact) voidsetTotalStorageRate(double totalStorageRate)
-
Constructor Details
-
ApplianceAggregateInfo
public ApplianceAggregateInfo()
-
-
Method Details
-
clone
-
addInfoForPV
-
getTotalStorageRate
public double getTotalStorageRate()Gets the aggregated total computedStorageRate for this appliance- Returns:
- totalStorageRate
-
getTotalEventRate
public double getTotalEventRate()Gets the aggregated total computedEventRate for this appliance- Returns:
- totalEventRate
-
getTotalPVCount
public double getTotalPVCount()Gets the aggregated pv count for this appliance.- Returns:
- totalPVCount
-
setTotalStorageRate
public void setTotalStorageRate(double totalStorageRate) -
setTotalEventRate
public void setTotalEventRate(double totalEventRate) -
setTotalPVCount
public void setTotalPVCount(double totalPVCount) -
getTotalStorageImpact
The storage impact is the impact of a PV on the particular store. It is the product of the estimated storage rate and the partition granularity of the source. This returns the aggregated impact on the various stores on this appliance indexed by the identity of the store.- Returns:
- totalStorageImpact
-
setTotalStorageImpact
-
getDifference
This returns a new ApplianceAggregateInfo that is the difference between this info and the other info. Used to maintain the delta of ApplianceAggregateInfo's between the periodic fetches of the CapacityPlanningMetricsPerApplianceForPV- Parameters:
other- ApplianceAggregateInfo- Returns:
- ApplianceAggregateInfo
-