org.apache.excalibur.util.system
Class WindowsNT
java.lang.Object
org.apache.excalibur.util.system.WindowsNT
- All Implemented Interfaces:
- CPUParser
public final class WindowsNT
- extends Object
- implements CPUParser
Parses the Windows 2000 environment--the same class should work for other
Windows versions, but I only have one to test.
- Version:
- CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:29 $
- Author:
- Avalon Development Team
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 |
WindowsNT
public WindowsNT()
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 © 2012 The Apache Software Foundation. All Rights Reserved.