|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.db.DatabaseConfigServiceImpl
public class DatabaseConfigServiceImpl
Implementation provides database instance services such as connection factory and connection settings.
Constructor Summary | |
---|---|
DatabaseConfigServiceImpl(Map<String,ConfigurationDBRef> mapDatabaseRef,
SchedulingService schedulingService,
ScheduleBucket scheduleBucket)
Ctor. |
Method Summary | |
---|---|
ConnectionCache |
getConnectionCache(String databaseName,
String preparedStatementText)
Returns true to indicate a setting to retain connections between lookups. |
DatabaseConnectionFactory |
getConnectionFactory(String databaseName)
Returns a connection factory for a configured database. |
DataCache |
getDataCache(String databaseName,
EPStatementHandle epStatementHandle)
Returns a new cache implementation for this database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseConfigServiceImpl(Map<String,ConfigurationDBRef> mapDatabaseRef, SchedulingService schedulingService, ScheduleBucket scheduleBucket)
mapDatabaseRef
- is a map of database name and database configuration entriesschedulingService
- is for scheduling callbacks for a cachescheduleBucket
- is a system bucket for all scheduling callbacks for cachesMethod Detail |
---|
public ConnectionCache getConnectionCache(String databaseName, String preparedStatementText) throws DatabaseConfigException
DatabaseConfigService
getConnectionCache
in interface DatabaseConfigService
databaseName
- is the name of the databasepreparedStatementText
- is the sql text
DatabaseConfigException
- is thrown to indicate database configuration errorspublic DatabaseConnectionFactory getConnectionFactory(String databaseName) throws DatabaseConfigException
DatabaseConfigService
getConnectionFactory
in interface DatabaseConfigService
databaseName
- is the name of the database
DatabaseConfigException
- is thrown to indicate database configuration errorspublic DataCache getDataCache(String databaseName, EPStatementHandle epStatementHandle) throws DatabaseConfigException
DatabaseConfigService
getDataCache
in interface DatabaseConfigService
databaseName
- is the name of the database to return a new cache implementation for forepStatementHandle
- is the statements-own handle for use in registering callbacks with services
DatabaseConfigException
- is thrown to indicate database configuration errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |