|
EAF 7.6 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogicalDatabase
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 |
---|
void init(java.lang.String dbName, com.lutris.util.Config dbConfig) throws ConfigException, java.sql.SQLException
ConfigException
- if there is an error in the configuration.
java.sql.SQLException
- if a SQL error occurs.DBConnection allocateConnection() throws java.sql.SQLException
java.sql.SQLException
- if a SQL error occurs.ObjectId allocateObjectId() throws ObjectIdException
ObjectIdException
- if an object id cannot be allocated.void checkOId(ObjectId oid) throws ObjectIdException
oid
- oid which will be checked.
ObjectIdException
- If a oid does't belong to range.DBTransaction createTransaction() throws java.sql.SQLException
java.sql.SQLException
- if a SQL error occurs.DBQuery createQuery() throws java.sql.SQLException
java.sql.SQLException
- if a SQL error occurs.void shutdown()
java.lang.String getName()
java.lang.String getType()
int getActiveConnectionCount()
int getMaxConnectionCount()
java.util.Date getMaxConnectionCountDate()
Date
when the maximum connection
count occured.void resetMaxConnectionCount()
long getRequestCount()
|
EAF 7.6 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |