| |
|
| java.lang.Object org.enhydra.server.DatabaseInfo
DatabaseInfo | public class DatabaseInfo (Code) | | This class is used for obtaining information about particular application
connected to its database properties. Information are provided from the
DatabaseManager instance associated to specified application.
|
Constructor Summary | |
public | DatabaseInfo(Application app, Config appConfig) Construction with asociated application and coresponded configuration
parameters represented via Config object. |
DatabaseInfo | public DatabaseInfo(Application app, Config appConfig) throws DatabaseManagerException, KeywordValueException(Code) | | Construction with asociated application and coresponded configuration
parameters represented via Config object.
Parameters: app - associate aplication Parameters: appConfig - cofiguration file parameters represented as Config object |
getActiveConnections | public String getActiveConnections(String dBname) throws DatabaseManagerException(Code) | | Gets the number of currently active connections for the supplied logical
database name.
Parameters: dBname - name of database. number of currently active connections represented as String, orN/A if this property is not available. |
getDbManagerType | public String getDbManagerType()(Code) | | Gets the type of DatabaseManager instance.
type of DatabaseManager instance represented as String, or N/A ifthis property is not available. |
getDbType | public String getDbType(String dBname) throws DatabaseManagerException(Code) | | Gets database type for given database name from DatabaseManager instance.
Parameters: dBname - name of database. database type represented as String, or N/A if this property is notavailable. |
getDefaultLogicalDbName | public String getDefaultLogicalDbName()(Code) | | Gets the default logical database name.
name of database which is set as default. |
getLogicalDbNames | public String[] getLogicalDbNames()(Code) | | Returns list of logical database names obtained from application DatabaseManager
object.
list of logical database names represented as array of Strings, or nullif application has no corresponding databases. |
getPeakConnections | public String getPeakConnections(String dBname) throws DatabaseManagerException(Code) | | Gets the maximum number of concurent connections that existed at any time
since this object was created.
Parameters: dBname - name of database. maximum number of concurent connections represented as String, orN/A if this property is not available. |
getPeakConnectionsDate | public Date getPeakConnectionsDate(String dBname) throws DatabaseManagerException(Code) | | Gets the date and time when maximum number of concurent connections occurs
since this object was created.
Parameters: dBname - name of database. date and time when maximum number of concurent connections occursrepresented as Date object, or null if this property is not implemented |
getTotalRequests | public String getTotalRequests(String dBname) throws DatabaseManagerException(Code) | | Gets the number of requests made to the database since startup time
Parameters: dBname - name of database. number of requests made to the database represented as String, orN/A if this property is not available. |
resetMaxConnectionCount | public void resetMaxConnectionCount(String dBname) throws DatabaseManagerException(Code) | | Reset the maximum connection count for the given logical database name.
Parameters: dBname - name of database which connection count will be reset. |
|
|
|