PageBoxLib
Class ResourceUsage

java.lang.Object
  extended byPageBoxLib.MemUsage
      extended byPageBoxLib.ResourceUsage
All Implemented Interfaces:
java.io.Serializable

public class ResourceUsage
extends MemUsage
implements java.io.Serializable

Resource usage data.

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
See Also:
Serialized Form

Field Summary
 float perIdle
          CPU percentage idle
 float perSystem
          CPU percentage system
 float perUse
          CPU percentage used = 100 - perIdle
 float perUser
          CPU percentage user + user nice
 
Fields inherited from class PageBoxLib.MemUsage
free, max, msg, netTime, total
 
Constructor Summary
(package private) ResourceUsage()
          Default constructor.
(package private) ResourceUsage(java.lang.String msg)
          Constructor.
 
Methods inherited from class PageBoxLib.MemUsage
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

perUse

public float perUse
CPU percentage used = 100 - perIdle


perIdle

public float perIdle
CPU percentage idle


perSystem

public float perSystem
CPU percentage system


perUser

public float perUser
CPU percentage user + user nice

Constructor Detail

ResourceUsage

ResourceUsage(java.lang.String msg)
Constructor.

Parameters:
msg - error message

ResourceUsage

ResourceUsage()
Default constructor.

See Also:
Object.Object()