public class CauchoSystem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EXIT_BIND |
static int |
EXIT_DEADLOCK |
static int |
EXIT_OOM |
static int |
EXIT_OTHER |
Modifier and Type | Method and Description |
---|---|
static void |
exitOom(java.lang.Class<?> cl,
java.lang.Throwable e) |
static java.lang.String |
getClassPath()
Returns the system classpath, including the bootpath
|
static java.util.ArrayList<java.lang.String> |
getClassPathList()
Returns the system classpath, including the bootpath
|
static char |
getFileSeparatorChar() |
static java.lang.String |
getFullVersion() |
static double |
getLoadAvg() |
static java.lang.String |
getLocalHost() |
static java.lang.String |
getNewlineString() |
static char |
getPathSeparatorChar() |
static java.lang.String |
getResinConfig() |
static Path |
getResinHome()
Gets the Path used as ResinHome.
|
static java.lang.String |
getServerId() |
static java.lang.String |
getUserDir() |
static java.lang.String |
getUserName() |
static java.lang.String |
getVersion() |
static long |
getVersionId() |
static Path |
getWorkPath()
Returns a path to the work directory.
|
static boolean |
is64Bit() |
static boolean |
isCaseInsensitive() |
static boolean |
isDetailedStatistics()
Detailed statistics cause various parts of Resin to keep more detailed
statistics at the possible expense of some performance.
|
static boolean |
isJdk15() |
static boolean |
isJdk7() |
static boolean |
isTest() |
static boolean |
isTesting()
Returns true if we're currently running a test.
|
static boolean |
isUnix() |
static boolean |
isWindows() |
static java.lang.Class<?> |
loadClass(java.lang.String name)
Loads a class from the context class loader.
|
static java.lang.Class<?> |
loadClass(java.lang.String name,
boolean init,
java.lang.ClassLoader loader)
Loads a class from a classloader.
|
static void |
setDetailedStatistics(boolean isVerboseStatistics)
Set true to cause the tracking of detailed statistcs, default false.
|
static void |
setIsTesting(boolean testing) |
static void |
setResinHome(Path path)
Sets the Path to be used as ResinHome.
|
static void |
setWindowsTest(boolean isWindows) |
public static int EXIT_BIND
public static int EXIT_OOM
public static int EXIT_DEADLOCK
public static int EXIT_OTHER
public static boolean isTesting()
public static void setIsTesting(boolean testing)
public static void setResinHome(Path path)
public static Path getResinHome()
public static java.lang.String getVersion()
public static java.lang.String getFullVersion()
public static long getVersionId()
public static java.lang.String getResinConfig()
public static Path getWorkPath()
public static java.lang.String getServerId()
public static java.lang.String getUserDir()
public static char getFileSeparatorChar()
public static char getPathSeparatorChar()
public static java.lang.String getNewlineString()
public static boolean isWindows()
public static boolean isTest()
public static boolean isCaseInsensitive()
public static boolean isUnix()
public static void setWindowsTest(boolean isWindows)
public static java.lang.String getLocalHost()
public static boolean isJdk15()
public static java.lang.String getUserName()
public static void setDetailedStatistics(boolean isVerboseStatistics)
public static boolean isDetailedStatistics()
public static java.lang.Class<?> loadClass(java.lang.String name) throws java.lang.ClassNotFoundException
name
- the classname, separated by '.'java.lang.ClassNotFoundException
public static java.lang.Class<?> loadClass(java.lang.String name, boolean init, java.lang.ClassLoader loader) throws java.lang.ClassNotFoundException
name
- the classname, separated by '.'init
- if true, resolves the class instancesloader
- the class loaderjava.lang.ClassNotFoundException
public static java.lang.String getClassPath()
public static java.util.ArrayList<java.lang.String> getClassPathList()
public static double getLoadAvg()
public static void exitOom(java.lang.Class<?> cl, java.lang.Throwable e)
public static boolean is64Bit()
public static boolean isJdk7()