|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.util.CauchoSystem
A wrapper for Caucho system variables, allowing tests to override the default variables.
Method Summary | |
static java.lang.String |
getClassPath()
Returns the system classpath, including the bootpath |
static java.lang.ClassLoader |
getContextClassLoader()
Gets the per-thread class loader, the context class loader. |
static CpuUsage |
getCpuUsage()
|
static char |
getFileSeparatorChar()
|
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.ClassLoader |
getStaticClassLoader()
Returns the top-level class loader. |
static java.lang.String |
getUserDir()
|
static java.lang.String |
getUserName()
|
static int |
getVersionId()
|
static Path |
getWorkPath()
|
static boolean |
isJdk12()
|
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,
boolean init,
java.lang.ClassLoader loader)
Loads a class from a classloader. |
static void |
setContextClassLoader(java.lang.ClassLoader loader)
Sets the per-thread class loader, the context class loader. |
static void |
setIsTesting(boolean testing)
|
static void |
setResinHome(Path path)
Sets the Path to be used as ResinHome. |
static void |
setStaticClassLoader(java.lang.ClassLoader loader)
Sets the top-level class loader. |
static boolean |
setUser()
|
static boolean |
setUser(java.lang.String user,
java.lang.String group)
Sets the runtime user so we don't need to run as root. |
static void |
setWindowsTest(boolean windows)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean isTesting()
public static void setIsTesting(boolean testing)
public static void setResinHome(Path path)
public static Path getResinHome()
public static int getVersionId()
public static java.lang.String getResinConfig()
public static Path getWorkPath()
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 isUnix()
public static void setWindowsTest(boolean windows)
public static java.lang.String getLocalHost()
public static java.lang.String getUserName()
public static CpuUsage getCpuUsage()
public static boolean isJdk12()
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 loaderpublic static java.lang.ClassLoader getContextClassLoader()
public static void setContextClassLoader(java.lang.ClassLoader loader)
loader
- the class loader for this thread.public static void setStaticClassLoader(java.lang.ClassLoader loader)
public static java.lang.ClassLoader getStaticClassLoader()
public static java.lang.String getClassPath()
public static boolean setUser(java.lang.String user, java.lang.String group) throws java.lang.Exception
public static boolean setUser() throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |