Class MetaInfo
java.lang.Object
org.epics.archiverappliance.config.MetaInfo
this class is used for getting the meta data
- Author:
- luofeng li
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOtherMetaInfo(String name, Double value) add other meta info such as MDEL,ADELvoidaddOtherMetaInfo(String name, String value) add other meta info such as MDEL,ADELvoidAdd the latest metadata values to the dictvoidapplyBasicInfo(String pvName, gov.aps.jca.dbr.DBR dbr, ConfigService configService) save the basical info from dbrvoidcomputeRate(DBRTimeEvent dbrtimeevent) compute the storage rate and the event rateget aliasNameget ArchDBRTypesintgetCount()get the element count of the pv's value.longget total count of event in 1 minute.doubleget the average event rate in 1 minuteString[]getLabel()doubleget loweCtrlLimitdoubleget lowerAlarmLimitdoubleget lowerDisplayLimitdoubleget lowerWarningLimitintget precisiondoublelongget the time when archiving this pv.doubleget the average storage rate in one minutelongget the toal storage size of the event in 1 minutegetUnit()get unitdoubleget upperAlarmLimitdoubleget upperCtrlLimitdoubleget upperDisplayLimitdoubleget upperWarningLimitbooleanisVector()the pv is vector or notvoidsetAliasName(String aliaseName) set aliaseNamevoidsetArchDBRTypes(ArchDBRTypes archDBRTypes) set the archiving DBRType for this pvvoidsetCount(int count) set the count of pv's value.voidsetEventCount(long eventCount) set the total event countvoidsetEventRate(double eventRate) set the event ratevoidsetHostName(String hostName) voidvoidsetLoweCtrlLimit(double loweCtrlLimit) set the lower ctrl limitvoidsetLowerAlarmLimit(double lowerAlarmLimit) set the lower Alarm LimitvoidsetLowerDisplayLimit(double lowerDisplayLimit) set the lower display limitvoidsetLowerWarningLimit(double lowerWarningLimit) set the lower warning limitvoidsetOtherMetaInfo(HashMap<String, String> otherMetaInfo) save the other info such as MDEL,ADELvoidsetPrecision(int precision) set the precisionvoidsetSecond(double second) voidsetStartTime(long startTime) set the starting time of archiving this pvvoidsetStorageRate(double storageRate) set the storage ratevoidsetStorageSize(long storageSize) set total storage size of the event until nowvoidset the unitvoidsetUpperAlarmLimit(double upperAlarmLimit) set the upper alarm limitvoidsetUpperCtrlLimit(double upperCtrlLimit) set the upper ctrl limitvoidsetUpperDisplayLimit(double upperDisplayLimit) set the upper display limitvoidsetUpperWarningLimit(double upperWarningLimit) set the upper warning limitvoidsetVector(boolean isVector) set this pv to be a vector or nottoString()
-
Constructor Details
-
MetaInfo
public MetaInfo()
-
-
Method Details
-
addOtherMetaInfo
add other meta info such as MDEL,ADEL- Parameters:
name- the info namevalue- the info value
-
getHostName
- Returns:
- the host name where this pv is
-
setHostName
- Parameters:
hostName- the host name where this pv is
-
addOtherMetaInfo
add other meta info such as MDEL,ADEL- Parameters:
name- the info namevalue- the info value
-
setStartTime
public void setStartTime(long startTime) set the starting time of archiving this pv- Parameters:
startTime- the number of milliseconds since 1970/01/01
-
getOtherMetaInfo
- Returns:
- the HashMap including all other info for this pv.
-
applyBasicInfo
save the basical info from dbr- Parameters:
pvName- the name of the PVdbr- EPICS DB recordconfigService- ConfigService
-
setAliasName
set aliaseName- Parameters:
aliaseName-
-
getLowerAlarmLimit
public double getLowerAlarmLimit()get lowerAlarmLimit- Returns:
- lowerAlarmLimit <PV Name>.LOLO
-
getLoweCtrlLimit
public double getLoweCtrlLimit()get loweCtrlLimit- Returns:
- loweCtrlLimit <PV Name>.DRVL
-
getLowerDisplayLimit
public double getLowerDisplayLimit()get lowerDisplayLimit- Returns:
- lowerDisplayLimit <PV Name>.LOPR
-
getLowerWarningLimit
public double getLowerWarningLimit()get lowerWarningLimit- Returns:
- lowerWarningLimit <PV Name>.LOW
-
getUpperAlarmLimit
public double getUpperAlarmLimit()get upperAlarmLimit- Returns:
- upperAlarmLimit <PV Name>.HIHI
-
getUpperCtrlLimit
public double getUpperCtrlLimit()get upperCtrlLimit- Returns:
- upperCtrlLimit <PV Name>.DRVH
-
getUpperDisplayLimit
public double getUpperDisplayLimit()get upperDisplayLimit- Returns:
- upperDisplayLimit <PV Name>.HOPR
-
getUpperWarningLimit
public double getUpperWarningLimit()get upperWarningLimit- Returns:
- upperWarningLimit <PV Name>.HIGH
-
getPrecision
public int getPrecision()get precision- Returns:
- precision <PV Name>.PREC
-
getUnit
get unit- Returns:
- unit <PV Name>.EGU
-
getAliasName
get aliasName- Returns:
- aliasName <PV Name>.NAME
-
getArchDBRTypes
get ArchDBRTypes- Returns:
- ArchDBRTypes
-
getEventRate
public double getEventRate()get the average event rate in 1 minute- Returns:
- eventRate the average event rate in 1 min
-
getStorageRate
public double getStorageRate()get the average storage rate in one minute- Returns:
- storageRate average storage rate (bytes per second)
-
getCount
public int getCount()get the element count of the pv's value.- Returns:
- count
-
isVector
public boolean isVector()the pv is vector or not- Returns:
- isVector true if vector, else false;
-
getLabel
-
getEventCount
public long getEventCount()get total count of event in 1 minute.- Returns:
- eventCount the count of event in one minute
-
getStorageSize
public long getStorageSize()get the toal storage size of the event in 1 minute- Returns:
- storageSize toal storage size in one minute
-
getSecond
public double getSecond() -
computeRate
compute the storage rate and the event rate- Parameters:
dbrtimeevent- DBRTimeEvent
-
toString
-
getStartTime
public long getStartTime()get the time when archiving this pv.- Returns:
- startTime the starting time and the number of milliseconds since 1970/01/01
-
setArchDBRTypes
set the archiving DBRType for this pv- Parameters:
archDBRTypes- ArchDBRTypes
-
setOtherMetaInfo
save the other info such as MDEL,ADEL- Parameters:
otherMetaInfo- a hashmap including the other meta info.
-
setLowerAlarmLimit
public void setLowerAlarmLimit(double lowerAlarmLimit) set the lower Alarm Limit- Parameters:
lowerAlarmLimit- the lower Alarm Limit
-
setLoweCtrlLimit
public void setLoweCtrlLimit(double loweCtrlLimit) set the lower ctrl limit- Parameters:
loweCtrlLimit- the lower ctrl limit
-
setLowerDisplayLimit
public void setLowerDisplayLimit(double lowerDisplayLimit) set the lower display limit- Parameters:
lowerDisplayLimit- the lower display limit
-
setLowerWarningLimit
public void setLowerWarningLimit(double lowerWarningLimit) set the lower warning limit- Parameters:
lowerWarningLimit- the lower warning limit
-
setUpperAlarmLimit
public void setUpperAlarmLimit(double upperAlarmLimit) set the upper alarm limit- Parameters:
upperAlarmLimit- the upper alarm limit
-
setUpperCtrlLimit
public void setUpperCtrlLimit(double upperCtrlLimit) set the upper ctrl limit- Parameters:
upperCtrlLimit- the upper ctrl limit
-
setUpperDisplayLimit
public void setUpperDisplayLimit(double upperDisplayLimit) set the upper display limit- Parameters:
upperDisplayLimit- the upper display limit
-
setUpperWarningLimit
public void setUpperWarningLimit(double upperWarningLimit) set the upper warning limit- Parameters:
upperWarningLimit- the upper warning limit
-
setPrecision
public void setPrecision(int precision) set the precision- Parameters:
precision- the precision
-
setUnit
set the unit- Parameters:
unit- the unit
-
setEventCount
public void setEventCount(long eventCount) set the total event count- Parameters:
eventCount-
-
setStorageSize
public void setStorageSize(long storageSize) set total storage size of the event until now- Parameters:
storageSize-
-
setEventRate
public void setEventRate(double eventRate) set the event rate- Parameters:
eventRate- the event rate
-
setStorageRate
public void setStorageRate(double storageRate) set the storage rate- Parameters:
storageRate- storage rate
-
setCount
public void setCount(int count) set the count of pv's value.- Parameters:
count-
-
setVector
public void setVector(boolean isVector) set this pv to be a vector or not- Parameters:
isVector-
-
setLabel
-
setSecond
public void setSecond(double second) -
addToDict
Add the latest metadata values to the dict- Parameters:
retVal- HashMap
-