org.apache.excalibur.util
Class SystemUtil
java.lang.Object
org.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:
| Constructor Summary |
private |
SystemUtil()
keep utility from being instantiated |
| 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 |
private static java.lang.String |
stripWhitespace(java.lang.String mosname)
Utility method to strip whitespace from specified name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_processors
private static final int m_processors
-
m_cpuInfo
private static final java.lang.String m_cpuInfo
-
m_architecture
private static final java.lang.String m_architecture
-
m_osName
private static final java.lang.String m_osName
-
m_osVersion
private static final java.lang.String m_osVersion
-
SystemUtil
private SystemUtil()
-
keep utility from being instantiated
stripWhitespace
private static java.lang.String stripWhitespace(java.lang.String mosname)
-
Utility method to strip whitespace from specified name.
-
- Parameters:
mosname - the name
- Returns:
- the whitespace stripped version
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
-
Please see keelframework.org for information about new Keel releases.