|
DODS 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a logical database. Each logical database must provide services for connection and object id allocation.
Method Summary | |
DBConnection |
allocateConnection()
Return a connection to this logical database. |
ObjectId |
allocateObjectId()
Return an object id for this logical database. |
void |
checkOId(ObjectId oid)
Check does oid belong to Object id's range [minOId, currentOId] |
DBQuery |
createQuery()
Return a query for use on this logical database. |
DBTransaction |
createTransaction()
Return a transaction for use on this logical database. |
int |
getActiveConnectionCount()
Return the number of currently active connections. |
int |
getMaxConnectionCount()
Return the maximum number of connections active at one time. |
java.util.Date |
getMaxConnectionCountDate()
Return the time when the maximum connection count occured. |
java.lang.String |
getName()
Return the symbolic name of this logical database. |
long |
getRequestCount()
Return the number of database requests. |
java.lang.String |
getType()
Return a description of the logical database type. |
void |
init(java.lang.String dbName,
com.lutris.util.Config dbConfig)
Initialize the logical database. |
void |
resetMaxConnectionCount()
Reset the maximum connection count and date. |
void |
shutdown()
Immediately shutdown the logical database. |
Method Detail |
public void init(java.lang.String dbName, com.lutris.util.Config dbConfig) throws com.lutris.util.ConfigException, java.sql.SQLException
com.lutris.util.ConfigException
- if there is an error in the configuration.
java.sql.SQLException
- if a SQL error occurs.public DBConnection allocateConnection() throws java.sql.SQLException
java.sql.SQLException
- if a SQL error occurs.public ObjectId allocateObjectId() throws ObjectIdException
ObjectIdException
- if an object id cannot be allocated.public void checkOId(ObjectId oid) throws ObjectIdException
oid
- oid which will be checked.
ObjectIdException
- If a oid does't belong to range.public DBTransaction createTransaction() throws java.sql.SQLException
java.sql.SQLException
- if a SQL error occurs.public DBQuery createQuery() throws java.sql.SQLException
java.sql.SQLException
- if a SQL error occurs.public void shutdown()
public java.lang.String getName()
public java.lang.String getType()
public int getActiveConnectionCount()
public int getMaxConnectionCount()
public java.util.Date getMaxConnectionCountDate()
Date
when the maximum connection
count occured.public void resetMaxConnectionCount()
public long getRequestCount()
|
DODS 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |