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 TypeMethodDescriptiondouble
Gets a "quality" measurement of the instance.void
start()
Starts theLoadMonitorService
void
stop()
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:LoadMonitorService
Starts theLoadMonitorService
- Specified by:
start
in interfaceLoadMonitorService
-
stop
public void stop()Description copied from interface:LoadMonitorService
Stops theLoadMonitorService
- Specified by:
stop
in interfaceLoadMonitorService
-
getInstanceQuality
public double getInstanceQuality()Description copied from interface:LoadMonitorService
Gets 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:
getInstanceQuality
in interfaceLoadMonitorService
- Returns:
- the quality of the instance
-