Java Doc for Env.java in  » Database-DBMS » Ozone-1.1 » org » ozoneDB » core » 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 » Database DBMS » Ozone 1.1 » org.ozoneDB.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ozoneDB.core.Env

Env
final public class Env (Code)
Env is the environment of a ozone database server. Currently there is only one environment allowed per JVM. A server environment can be initialized by the a Server or by a LocalDatabase.
author:
   SMB
author:
   Medium.net
version:
   $Revision: 1.5 $Date: 2002/06/25 11:34:38 $


Field Summary
final public static  intACCEPT_THREAD_PRIORITY
    
final public static  StringCONFIG_FILE
    
final public static  StringDATA_DIR
    
final public static  intDEADLOCK_THREAD_PRIORITY
     Thread priority deadlock recognition.
final public static  StringLOG_FILE
    
final public static  StringOS_DIR
    
final public static  intSERVER_THREAD_PRIORITY
    
final public static  StringSTATE_FILE
    
final public static  StringSTATS_DIR
    
final public static  intTRANSACTION_MUTEX_PRIORITY
    
final public static  intTRANSACTION_THREAD_PRIORITY
     Thread priority of normal transaction.
final public static  StringVERSION
    
public  AdminManageradminManager
    
public  ClassManagerclassManager
    
public  Setupconfig
     Holds the content of the 'config.properties' config file.
public  Databasedatabase
     Interface for the database objects inside the server.
protected  DeadlockThreaddeadlockThread
    
public  Stringdir
    
protected  DeadlockRecognitiondr
    
protected  GarbageCollectorgarbageCollector
    
protected  InvokeServerinvokeServer
    
protected  longkeepMemory
    
public  KeyGeneratorkeyGenerator
    
protected  LocalClientTrackerlocalClientTracker
    
public  LogWriterlogWriter
    
protected static  OzoneSecurityManagersecurityManager
    
final public static  booleanselfCheck
     Wether ozone should do selfChecks at different code locations.
public  booleanshuttingdown
     This indicates that we are about to shutdown.
public  Setupstate
     Holds the content of the 'state.properties' file.
public  StoreManagerstoreManager
    
public static  EnvtheEnv
     The one and only ozone environment of this VM.
protected  longtotalMemory
    
public  TransactionManagertransactionManager
    
public  UserManageruserManager
    

Constructor Summary
public  Env(String _dirName, String _debugLevel)
     Construct a new ozone server environment.
Parameters:
  _dirName - Directory of the database.
Parameters:
  _debugLevel - the debug level that should be used,oveerriding the entry in config.properties.

Method Summary
public  intadminPortNum()
    
protected  voidcalcMemory()
     Initialize the internal memory counter so that freeMemory() returns correct results.
public static  EnvcurrentEnv()
     Returns the environment of the current thread.
public  intdbID()
    
public  DeadlockRecognitiondeadlockRecognition()
     Factory method to create or re-use a DR object.
public  voidfatalError(Object sender, String msg, Exception e)
    
public  longfreeMemory()
     Return the amount of *total* free memory in the system.
public  GarbageCollectorgetGarbageCollector()
    
public  InvokeServergetInvokeServer()
    
public  LocalClientTrackergetLocalClientTracker()
    
public  LogWritergetLogWriter()
    
public  SetupgetState()
    
public  StoreManagergetStoreManager()
    
public  TransactionManagergetTransactionManager()
    
public  UserManagergetUserManager()
    
protected  voidinitLogs(String debugLevelName)
     Initialize server logging.
protected  voidinitSetup()
     Initialize the setup (state and config) of this server environment.
public  booleanisComponentStateChanged()
    
public  intportNum()
    
public  voidshutdown()
    
public  voidstartDeadlockRecognition()
    
public  voidstartExternalEventProcessing()
    
protected synchronized  voidstoreSetup()
     Save the setup (state and config) of the current server environment.

Field Detail
ACCEPT_THREAD_PRIORITY
final public static int ACCEPT_THREAD_PRIORITY(Code)
AdminPort and InvokeServer accepts and admin requests



CONFIG_FILE
final public static String CONFIG_FILE(Code)



DATA_DIR
final public static String DATA_DIR(Code)



DEADLOCK_THREAD_PRIORITY
final public static int DEADLOCK_THREAD_PRIORITY(Code)
Thread priority deadlock recognition.



LOG_FILE
final public static String LOG_FILE(Code)



OS_DIR
final public static String OS_DIR(Code)



SERVER_THREAD_PRIORITY
final public static int SERVER_THREAD_PRIORITY(Code)
Priority of the server thread (Server.main())



STATE_FILE
final public static String STATE_FILE(Code)



STATS_DIR
final public static String STATS_DIR(Code)



TRANSACTION_MUTEX_PRIORITY
final public static int TRANSACTION_MUTEX_PRIORITY(Code)



TRANSACTION_THREAD_PRIORITY
final public static int TRANSACTION_THREAD_PRIORITY(Code)
Thread priority of normal transaction.



VERSION
final public static String VERSION(Code)



adminManager
public AdminManager adminManager(Code)



classManager
public ClassManager classManager(Code)



config
public Setup config(Code)
Holds the content of the 'config.properties' config file.



database
public Database database(Code)
Interface for the database objects inside the server.



deadlockThread
protected DeadlockThread deadlockThread(Code)



dir
public String dir(Code)



dr
protected DeadlockRecognition dr(Code)



garbageCollector
protected GarbageCollector garbageCollector(Code)



invokeServer
protected InvokeServer invokeServer(Code)



keepMemory
protected long keepMemory(Code)



keyGenerator
public KeyGenerator keyGenerator(Code)



localClientTracker
protected LocalClientTracker localClientTracker(Code)



logWriter
public LogWriter logWriter(Code)



securityManager
protected static OzoneSecurityManager securityManager(Code)



selfCheck
final public static boolean selfCheck(Code)
Wether ozone should do selfChecks at different code locations. If set to true, diagnostic messages are printed out in case something unusual or bad has been detected. If set to false, ozone will run at full speed. This is a kind of "poor man"s assertion facility as long as ozone should be compileable by javac older than from JDK1.4



shuttingdown
public boolean shuttingdown(Code)
This indicates that we are about to shutdown.



state
public Setup state(Code)
Holds the content of the 'state.properties' file. After changing the content the state must be written to disk to make changes persistent.



storeManager
public StoreManager storeManager(Code)



theEnv
public static Env theEnv(Code)
The one and only ozone environment of this VM.



totalMemory
protected long totalMemory(Code)



transactionManager
public TransactionManager transactionManager(Code)



userManager
public UserManager userManager(Code)




Constructor Detail
Env
public Env(String _dirName, String _debugLevel) throws Exception(Code)
Construct a new ozone server environment.
Parameters:
  _dirName - Directory of the database.
Parameters:
  _debugLevel - the debug level that should be used,oveerriding the entry in config.properties. If null then theconfig.properties entry will be used.




Method Detail
adminPortNum
public int adminPortNum()(Code)



calcMemory
protected void calcMemory()(Code)
Initialize the internal memory counter so that freeMemory() returns correct results.



currentEnv
public static Env currentEnv()(Code)
Returns the environment of the current thread. Useful for objects that do not store the enviroment itself like ObjectContainer. The environment of the current thread or null if called outsidethe server.



dbID
public int dbID()(Code)



deadlockRecognition
public DeadlockRecognition deadlockRecognition()(Code)
Factory method to create or re-use a DR object.



fatalError
public void fatalError(Object sender, String msg, Exception e)(Code)
Fires an error message and exits the VM



freeMemory
public long freeMemory()(Code)
Return the amount of *total* free memory in the system. The results returned by Runtime.freeMemory() may change overtime and so its useless for ozone.



getGarbageCollector
public GarbageCollector getGarbageCollector()(Code)



getInvokeServer
public InvokeServer getInvokeServer()(Code)



getLocalClientTracker
public LocalClientTracker getLocalClientTracker()(Code)



getLogWriter
public LogWriter getLogWriter()(Code)



getState
public Setup getState()(Code)



getStoreManager
public StoreManager getStoreManager()(Code)



getTransactionManager
public TransactionManager getTransactionManager()(Code)



getUserManager
public UserManager getUserManager()(Code)



initLogs
protected void initLogs(String debugLevelName) throws Exception(Code)
Initialize server logging. There are two LogTargets: stdout and file. Which log messages are written to which target is specified in the config file. If the server runs in debug mode, debug messages are written to each target. If debugLevelName is set to null the setting from the config.properties file is used



initSetup
protected void initSetup() throws Exception(Code)
Initialize the setup (state and config) of this server environment. When searching specific property look in setup file first, then in the properties file, then use defaults, then use System properties.



isComponentStateChanged
public boolean isComponentStateChanged()(Code)



portNum
public int portNum()(Code)



shutdown
public void shutdown()(Code)



startDeadlockRecognition
public void startDeadlockRecognition()(Code)



startExternalEventProcessing
public void startExternalEventProcessing() throws Exception(Code)



storeSetup
protected synchronized void storeSetup()(Code)
Save the setup (state and config) of the current server environment.



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.