Package dev.getelements.elements.rt
Interface LoadMonitorService
- All Known Implementing Classes:
SimpleLoadMonitorService
public interface LoadMonitorService
Monitors the load of the local instance and reports information such as CPU load and Memory load.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets a "quality" measurement of the instance.default void
start()
Starts theLoadMonitorService
default void
stop()
Stops theLoadMonitorService
-
Method Details
-
start
default void start()Starts theLoadMonitorService
-
stop
default void stop()Stops theLoadMonitorService
-
getInstanceQuality
double getInstanceQuality()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.- Returns:
- the quality of the instance
-