Package dev.getelements.elements.rt
Class SimpleLoadMonitorService
java.lang.Object
dev.getelements.elements.rt.SimpleLoadMonitorService
- All Implemented Interfaces:
LoadMonitorService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final dev.getelements.elements.rt.SimpleLoadMonitorService.LoadValues -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets a "quality" measurement of the instance.voidstart()Starts theLoadMonitorServicevoidstop()Stops theLoadMonitorService
-
Field Details
-
UNKNOWN
public static final dev.getelements.elements.rt.SimpleLoadMonitorService.LoadValues UNKNOWN
-
-
Constructor Details
-
SimpleLoadMonitorService
public SimpleLoadMonitorService()
-
-
Method Details
-
start
public void start()Description copied from interface:LoadMonitorServiceStarts theLoadMonitorService- Specified by:
startin interfaceLoadMonitorService
-
stop
public void stop()Description copied from interface:LoadMonitorServiceStops theLoadMonitorService- Specified by:
stopin interfaceLoadMonitorService
-
getInstanceQuality
public double getInstanceQuality()Description copied from interface:LoadMonitorServiceGets a "quality" measurement of the instance. The lower the value the better the quality. This can be derived from weighted averages of CPU/Memory percentage.- Specified by:
getInstanceQualityin interfaceLoadMonitorService- Returns:
- the quality of the instance
-