Package com.microej.kf.util.monitoring
Class MonitoringData
- java.lang.Object
-
- com.microej.kf.util.monitoring.MonitoringData
-
public class MonitoringData extends Object
This class represents the data structure used to handle data for resource monitoring.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMonitoringData.ExecutionCounterThis class represents the execution counter
-
Constructor Summary
Constructors Constructor Description MonitoringData(boolean runGcBeforeCollecting)Instantiates a new MonitoringData object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PackedMap<Module,MonitoringData.ExecutionCounter>getExecutionCounterPerModuleMap()Gets the execution counter per module maplonggetFreeMemory()Gets the free memory valuelonggetMaxMemory()Gets the max memory valuePackedMap<Module,Integer>getOriginalQuotaPerModuleMap()Gets the original quota per module mapPackedMap<Module,Long>getRamUsagePerModuleMap()Gets the ram usage per module maplonggetTotalMemory()Gets total memory value
-
-
-
Method Detail
-
getExecutionCounterPerModuleMap
public PackedMap<Module,MonitoringData.ExecutionCounter> getExecutionCounterPerModuleMap()
Gets the execution counter per module map- Returns:
- the execution counter map
-
getRamUsagePerModuleMap
public PackedMap<Module,Long> getRamUsagePerModuleMap()
Gets the ram usage per module map- Returns:
- the ram usage map
-
getOriginalQuotaPerModuleMap
public PackedMap<Module,Integer> getOriginalQuotaPerModuleMap()
Gets the original quota per module map- Returns:
- the original quota map
-
getTotalMemory
public long getTotalMemory()
Gets total memory value- Returns:
- the total memory value
-
getMaxMemory
public long getMaxMemory()
Gets the max memory value- Returns:
- the max memory value
-
getFreeMemory
public long getFreeMemory()
Gets the free memory value- Returns:
- the free memory value
-
-