org.apache.excalibur.util.system
Class Windows98

java.lang.Object
  |
  +--org.apache.excalibur.util.system.Windows98
All Implemented Interfaces:
CPUParser

public final class Windows98
extends Object
implements CPUParser

Parses the Windows 98 environment--the same class should work for other Windows versions, but I only have one to test. Windows 9x environments can only use one processor--even if there are more installed in the system.

Version:
CVS $Revision: 1.6 $ $Date: 2003/03/22 12:46:29 $
Author:
Berin Loritsch

Constructor Summary
Windows98()
           
 
Method Summary
 String cpuInfo()
          Return the cpu info for the processors (assuming symetric multiprocessing which means that all CPUs are identical).
 int numProcessors()
          Return the number of processors available on the machine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Windows98

public Windows98()
Method Detail

numProcessors

public int numProcessors()
Return the number of processors available on the machine

Specified by:
numProcessors in interface CPUParser

cpuInfo

public String cpuInfo()
Return the cpu info for the processors (assuming symetric multiprocessing which means that all CPUs are identical). The format is: ${arch} family ${family} Model ${model} Stepping ${stepping}, ${identifier}

Specified by:
cpuInfo in interface CPUParser


Copyright © 2002 Apache Avalon Project. All Rights Reserved.