PageBoxLib
Class WindowsUsageProbe

java.lang.Object
  extended byPageBoxLib.WindowsUsageProbe
All Implemented Interfaces:
UsageIF

class WindowsUsageProbe
extends java.lang.Object
implements UsageIF

Returns resource data on Windows NT, 2000 and XP. Uses a WindowsCPU dll. Returns a UsageIF object.

alexis.grandemange@pagebox.net

Copyright (c) 2002-2004 Alexis Grandemange

This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public License
 as published by the Free Software Foundation; version 2.1 of the
 License.
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU Lesser General Public License for more details.
 A copy of the GNU Lesser General Public License lesser.txt should be
 included in the distribution.

Version:
0, 0, 13
Author:
Alexis Grandemange

Field Summary
(package private)  boolean first
          true at first call of collect.
(package private)  Log log
          Logging object
 
Constructor Summary
(package private) WindowsUsageProbe(Log log)
          Constructor.
 
Method Summary
 ResourceUsage collect()
          Get resource usage information.
private  int getCPU()
          JNI method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

first

boolean first
true at first call of collect. Then measure is not valid.


log

Log log
Logging object

Constructor Detail

WindowsUsageProbe

WindowsUsageProbe(Log log)
Constructor.

Parameters:
log - logging object
Method Detail

getCPU

private int getCPU()
JNI method


collect

public ResourceUsage collect()
Get resource usage information. From UsageIF.

Specified by:
collect in interface UsageIF
Returns:
ResourceUsage object