Interface CPUMonitor
-
- All Superinterfaces:
ResourceMonitor<java.lang.Long>
public interface CPUMonitor extends ResourceMonitor<java.lang.Long>
AResourceMonitor
for theResourceMonitoringService.RES_TYPE_CPU
resource type. CPUMonitor instance monitors the CPU consumed by aResourceContext
instance.- Version:
- 1.0
- Author:
- $Id: 6b91995460f86fe796787e76546ace777fc62bff $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getCPUUsage()
Returns the CPU usage as a cumulative number of nanoseconds-
Methods inherited from interface org.osgi.service.resourcemonitoring.ResourceMonitor
delete, disable, enable, equals, getContext, getMonitoredPeriod, getResourceType, getSamplingPeriod, getUsage, hashCode, isDeleted, isEnabled
-
-
-
-
Method Detail
-
getCPUUsage
long getCPUUsage()
Returns the CPU usage as a cumulative number of nanosecondsThe
ResourceMonitor.getUsage()
method returns the same value, wrapped in a long.- Returns:
- the CPU usage in nanoseconds
-
-