Java Doc for CauchoSystem.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » server » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » resin » com.caucho.server.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.


Field Summary
static  CpuUsage_cpuUsage
    
static  boolean_hasJni
    
static  boolean_isTestWindows
    
static  boolean_isTesting
    
static  String_localHost
    
static  char_pathSeparatorChar
    
static  Path_resinHome
    
static  Path_rootDirectory
    
static  char_separatorChar
    
static  EnvironmentLocal<String>_serverIdLocal
    
static  String_userDir
    
static  String_userName
    


Method Summary
public static  StringgetClassPath()
    
public static  CpuUsagegetCpuUsage()
    
public static  chargetFileSeparatorChar()
    
public static  doublegetLoadAvg()
    
public static  StringgetLocalHost()
    
public static  StringgetNewlineString()
    
public static  chargetPathSeparatorChar()
    
public static  StringgetResinConfig()
    
public static  PathgetResinHome()
     Gets the Path used as ResinHome.
public static  StringgetServerId()
    
public static  StringgetUserDir()
    
public static  StringgetUserName()
    
public static  longgetVersionId()
    
public static  PathgetWorkPath()
     Returns a path to the work directory.
public static  booleanisCaseInsensitive()
    
public static  booleanisDetailedStatistics()
     Detailed statistics cause various parts of Resin to keep more detailed statistics at the possible expense of some performance.
public static  booleanisJdk15()
    
public static  booleanisTest()
    
public static  booleanisTesting()
     Returns true if we're currently running a test.
public static  booleanisUnix()
    
public static  booleanisWindows()
    
public static  ClassloadClass(String name)
     Loads a class from the context class loader.
public static  ClassloadClass(String name, boolean init, ClassLoader loader)
     Loads a class from a classloader.
public static  voidsetDetailedStatistics(boolean isVerboseStatistics)
     Set true to cause the tracking of detailed statistcs, default false.
public static  voidsetIsTesting(boolean testing)
    
public static  voidsetResinHome(Path path)
     Sets the Path to be used as ResinHome.
public static  intsetUser(String user, String group)
     Sets the runtime user so we don't need to run as root.
public static  voidsetWindowsTest(boolean isWindows)
    

Field Detail
_cpuUsage
static CpuUsage _cpuUsage(Code)



_hasJni
static boolean _hasJni(Code)



_isTestWindows
static boolean _isTestWindows(Code)



_isTesting
static boolean _isTesting(Code)



_localHost
static String _localHost(Code)



_pathSeparatorChar
static char _pathSeparatorChar(Code)



_resinHome
static Path _resinHome(Code)



_rootDirectory
static Path _rootDirectory(Code)



_separatorChar
static char _separatorChar(Code)



_serverIdLocal
static EnvironmentLocal<String> _serverIdLocal(Code)



_userDir
static String _userDir(Code)



_userName
static String _userName(Code)





Method Detail
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)



getLocalHost
public static String getLocalHost()(Code)



getNewlineString
public static String getNewlineString()(Code)



getPathSeparatorChar
public static char getPathSeparatorChar()(Code)



getResinConfig
public static String getResinConfig()(Code)



getResinHome
public static Path getResinHome()(Code)
Gets the Path used as ResinHome.



getServerId
public static String getServerId()(Code)



getUserDir
public static String getUserDir()(Code)



getUserName
public static String getUserName()(Code)



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)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.