Interface CPUMonitor

All Superinterfaces:
ResourceMonitor<Long>

public interface CPUMonitor extends ResourceMonitor<Long>
A ResourceMonitor for the ResourceMonitoringService.RES_TYPE_CPU resource type. CPUMonitor instance monitors the CPU consumed by a ResourceContext instance.
Version:
1.0
Author:
$Id: 6b91995460f86fe796787e76546ace777fc62bff $
  • Method Details

    • getCPUUsage

      long getCPUUsage()
      Returns the CPU usage as a cumulative number of nanoseconds

      The ResourceMonitor.getUsage() method returns the same value, wrapped in a long.

      Returns:
      the CPU usage in nanoseconds