|
ozone API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.AbstractDatabase
org.ozoneDB.ExternalDatabase
org.ozoneDB.LocalDatabase
This class represents a local database server that runs inside the same JVM as the client. For a detailed method description see OzoneInterface.
OzoneInterface
Field Summary | |
org.ozoneDB.core.Env |
env
|
java.lang.String |
userName
|
Fields inherited from class org.ozoneDB.ExternalDatabase |
DefaultAccessRight, PROP_DEBUG, PROP_DIR, PROP_HOST, PROP_PASSWD, PROP_PORT, PROP_USER |
Fields inherited from interface org.ozoneDB.OzoneInterface |
AllLock, AllRead, GroupLock, GroupRead, Private, Public |
Constructor Summary | |
LocalDatabase()
|
Method Summary | |
void |
close()
Close this database. |
java.lang.String |
create(java.lang.String dirName)
Create a new database in the given directory using default values for all Setup entries. |
java.lang.String |
create(java.lang.String dirName,
Setup setup)
Create a new database in the given directory using the values of the given Setup. |
boolean |
exists(java.lang.String dbDir)
|
boolean |
isOpen()
|
void |
open(java.lang.String dirName)
opens the database. |
void |
open(java.lang.String dirName,
int debugLevel)
Deprecated. but still needed by legacy software. use open(String _dirName, String _debugLevel ) instead. |
void |
open(java.lang.String dirName,
java.lang.String debugLevel)
Opens the database. |
void |
open(java.lang.String dirName,
java.lang.String debugLevel,
java.lang.String userName,
java.lang.String password)
Opens the database. |
java.lang.String |
toString()
|
Methods inherited from class org.ozoneDB.ExternalDatabase |
admin, beginTX, checkpointTX, commitTX, copyObject, createObject, createObject, createObject, createObject, createObject, createObject, createObject, createObject, createObject, createObject, currentExternalTransaction, currentTransaction, deleteObject, fetch, forThread, getStatusTX, getXAResource, invoke, invoke, joinTX, leaveTX, nameObject, newTransaction, notifyProxyDeath, objectForHandle, objectForName, objectNames, openDatabase, openDatabase, prepareTX, reloadClasses, rollbackTX, xmlForObject, xmlForObject |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public org.ozoneDB.core.Env env
public java.lang.String userName
Constructor Detail |
public LocalDatabase()
Method Detail |
public java.lang.String create(java.lang.String dirName) throws java.lang.Exception
dirName
- The directory to create the database in
java.lang.Exception
Setup
public java.lang.String create(java.lang.String dirName, Setup setup) throws java.lang.Exception
dirName
-
java.lang.Exception
Setup
public void open(java.lang.String dirName) throws java.lang.Exception
dirName
- is the path name of the database directory root
java.lang.Exception
public void open(java.lang.String dirName, int debugLevel) throws java.lang.Exception
dirName
- is the path name of the database directory rootdebugLevel
- should match one of the constants in OzoneDebugLevel.
Overrrides the property ozoneDB.logLevel in config.properties.
java.lang.Exception
public void open(java.lang.String dirName, java.lang.String debugLevel) throws java.lang.Exception
dirName
- is the path name of the database directory rootdebugLevel
- derived from OzoneDebugLevel.
Overrrides the property ozoneDB.logLevel in config.properties. If set to null, the config.properties
setting will be used.
java.lang.Exception
public void open(java.lang.String dirName, java.lang.String debugLevel, java.lang.String userName, java.lang.String password) throws java.lang.Exception
dirName
- debugLevel
- one of the String constants in OzoneDebugLevel (e.g. INFO_STR).
Overrrides the property ozoneDB.logLevel in config.properties. If set to null, the config.properties
setting will be used.userName
- password
-
java.lang.Exception
public boolean isOpen() throws java.lang.Exception
isOpen
in class ExternalDatabase
java.lang.Exception
public void close() throws java.lang.Exception
ExternalDatabase
close
in class ExternalDatabase
java.lang.Exception
public java.lang.String toString()
public boolean exists(java.lang.String dbDir)
|
ozone API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |