|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.excalibur.util.SystemUtil
public final class SystemUtil
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.
Field Summary | |
---|---|
private static java.lang.String |
m_architecture
|
private static java.lang.String |
m_cpuInfo
|
private static java.lang.String |
m_osName
|
private static java.lang.String |
m_osVersion
|
private static int |
m_processors
|
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 |
Field Detail |
---|
private static final int m_processors
private static final java.lang.String m_cpuInfo
private static final java.lang.String m_architecture
private static final java.lang.String m_osName
private static final java.lang.String m_osVersion
Constructor Detail |
---|
private SystemUtil()
Method Detail |
---|
private static java.lang.String stripWhitespace(java.lang.String mosname)
mosname
- the name
public static final int numProcessors()
public static final java.lang.String cpuInfo()
public static final java.lang.String architecture()
public static final java.lang.String operatingSystem()
public static final java.lang.String osVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |