Data object used to store the measurements of a performance counter.
Description
The Counter class allows you to create data objects used to store the measurements of performance counters.
Important points
- This object is used by CachedCounters to store counters.
Constructors
Creates a instance of the data object.
publicpublic Counter(String name, int type)
- name: string - a counter name.
- type: int - a counter type.
Fields
Instance methods
getName
publicString getName()
getType
publicvoid setName(String name)
getName
publicint getType()
setType
publicvoid setType(int type)
getLast
publicFloat getLast()
setLast
publicvoid setLast(Float last)
getCount
publicInteger getCount()
setCount
publicvoid setCount(Integer count)
getMin
publicFloat getMin()
setMin
publicvoid setMin(Float min)
getMax
publicFloat getMax()
setMax
publicsetMax(Float max)
getAverage
publicFloat getAverage()
setAverage
publicsetAverage(Float average)
getTime
publicZonedDateTime getTime()
setTime
publicsetTime(ZonedDateTime time)