Class SystemUtil

  extended byorg.apache.excalibur.util.SystemUtil

public final class SystemUtil
extends java.lang.Object

A set of utility operations that provide necessary information about the architecture of the machine that the system is running on. The values provided are automatically determined at JVM startup. The SystemUtils uses a plugin architecture so that it can be extended for more than just Linux/ Windows support.

CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:35 $
Avalon Development Team

Method Summary
static java.lang.String architecture()
          Return the architecture name
static java.lang.String cpuInfo()
static int numProcessors()
          Return the number of processors available on this machine.
static java.lang.String operatingSystem()
          Return the Operating System name
static java.lang.String osVersion()
          Return the Operating System version
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public static final int numProcessors()
Return the number of processors available on this machine. This is useful in classes like Thread/Processor thread pool models.


public static final java.lang.String cpuInfo()


public static final java.lang.String architecture()
Return the architecture name


public static final java.lang.String operatingSystem()
Return the Operating System name


public static final java.lang.String osVersion()
Return the Operating System version

Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.