org.apache.excalibur.util
Class SystemUtil

java.lang.Object
  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.

Version:
CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:35 $
Author:
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

numProcessors

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.


cpuInfo

public static final java.lang.String cpuInfo()

architecture

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


operatingSystem

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


osVersion

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



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