| |
|
| java.lang.Object com.caucho.server.util.CauchoSystem
CauchoSystem | public class CauchoSystem (Code) | | A wrapper for Caucho system variables, allowing tests to override
the default variables.
|
_cpuUsage | static CpuUsage _cpuUsage(Code) | | |
_hasJni | static boolean _hasJni(Code) | | |
_isTestWindows | static boolean _isTestWindows(Code) | | |
_isTesting | static boolean _isTesting(Code) | | |
_pathSeparatorChar | static char _pathSeparatorChar(Code) | | |
_resinHome | static Path _resinHome(Code) | | |
_rootDirectory | static Path _rootDirectory(Code) | | |
_separatorChar | static char _separatorChar(Code) | | |
getClassPath | public static String getClassPath()(Code) | | Returns the system classpath, including the bootpath
|
getCpuUsage | public static CpuUsage getCpuUsage()(Code) | | |
getFileSeparatorChar | public static char getFileSeparatorChar()(Code) | | |
getLoadAvg | public static double getLoadAvg()(Code) | | |
getNewlineString | public static String getNewlineString()(Code) | | |
getPathSeparatorChar | public static char getPathSeparatorChar()(Code) | | |
getResinHome | public static Path getResinHome()(Code) | | Gets the Path used as ResinHome.
|
getVersionId | public static long getVersionId()(Code) | | public static Path getRootDirectory()
{
if (_rootDirectory != null)
return _rootDirectory;
String path = System.getProperty("server.root");
if (path != null) {
_rootDirectory = Vfs.lookupNative(path);
return _rootDirectory;
}
path = System.getProperty("resin.home");
if (path != null) {
_rootDirectory = Vfs.lookupNative(path);
return _rootDirectory;
}
_rootDirectory = getResinHome();
return _rootDirectory;
}
|
getWorkPath | public static Path getWorkPath()(Code) | | Returns a path to the work directory. The work directory is
specified in the resin.conf by /caucho.com/java/work-path. If
unspecified, it defaults to /tmp/caucho.
directory path to work in. |
isCaseInsensitive | public static boolean isCaseInsensitive()(Code) | | |
isDetailedStatistics | public static boolean isDetailedStatistics()(Code) | | Detailed statistics cause various parts of Resin to keep more detailed
statistics at the possible expense of some performance.
|
isJdk15 | public static boolean isJdk15()(Code) | | |
isTest | public static boolean isTest()(Code) | | |
isTesting | public static boolean isTesting()(Code) | | Returns true if we're currently running a test.
|
isUnix | public static boolean isUnix()(Code) | | |
isWindows | public static boolean isWindows()(Code) | | |
loadClass | public static Class loadClass(String name) throws ClassNotFoundException(Code) | | Loads a class from the context class loader.
Parameters: name - the classname, separated by '.' the loaded class. |
loadClass | public static Class loadClass(String name, boolean init, ClassLoader loader) throws ClassNotFoundException(Code) | | Loads a class from a classloader. If the loader is null, uses the
context class loader.
Parameters: name - the classname, separated by '.' Parameters: init - if true, resolves the class instances Parameters: loader - the class loader the loaded class. |
setDetailedStatistics | public static void setDetailedStatistics(boolean isVerboseStatistics)(Code) | | Set true to cause the tracking of detailed statistcs, default false.
Detailed statistics cause various parts of Resin to keep more detailed
statistics at the possible expense of performance.
|
setIsTesting | public static void setIsTesting(boolean testing)(Code) | | |
setResinHome | public static void setResinHome(Path path)(Code) | | Sets the Path to be used as ResinHome.
|
setUser | public static int setUser(String user, String group) throws Exception(Code) | | Sets the runtime user so we don't need to run as root.
|
setWindowsTest | public static void setWindowsTest(boolean isWindows)(Code) | | |
|
|
|