|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infinispan.loaders.bdbje.BdbjeResourceFactory
public class BdbjeResourceFactory
Factory that assembles objects specific to the SleepyCat JE API.
Constructor Summary | |
---|---|
BdbjeResourceFactory(BdbjeCacheStoreConfig config)
|
Method Summary | |
---|---|
com.sleepycat.collections.CurrentTransaction |
createCurrentTransaction(com.sleepycat.je.Environment env)
|
com.sleepycat.je.Database |
createDatabase(com.sleepycat.je.Environment env,
String name)
Open the database, creating it if it doesn't exist. |
com.sleepycat.je.Environment |
createEnvironment(File envLocation)
Open the environment, creating it if it doesn't exist. |
PreparableTransactionRunner |
createPreparableTransactionRunner(com.sleepycat.je.Environment env)
|
com.sleepycat.bind.serial.StoredClassCatalog |
createStoredClassCatalog(com.sleepycat.je.Database catalogDb)
|
com.sleepycat.collections.StoredMap<Object,InternalCacheEntry> |
createStoredMapViewOfDatabase(com.sleepycat.je.Database database,
com.sleepycat.bind.serial.StoredClassCatalog classCatalog,
StreamingMarshaller m)
create a StoredMap persisted by the database |
com.sleepycat.collections.StoredSortedMap<Long,Object> |
createStoredSortedMapForKeyExpiry(com.sleepycat.je.Database database,
com.sleepycat.bind.serial.StoredClassCatalog classCatalog,
StreamingMarshaller marshaller)
create a StoredMap persisted by the database |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BdbjeResourceFactory(BdbjeCacheStoreConfig config)
Method Detail |
---|
public PreparableTransactionRunner createPreparableTransactionRunner(com.sleepycat.je.Environment env)
BdbjeCacheStoreConfig.getMaxTxRetries()
times.public com.sleepycat.collections.CurrentTransaction createCurrentTransaction(com.sleepycat.je.Environment env)
public com.sleepycat.je.Environment createEnvironment(File envLocation) throws com.sleepycat.je.DatabaseException
envLocation
- base directory where the Environment will write files
BdbjeCacheStoreConfig.getLockAcquistionTimeout()
milliseconds.
com.sleepycat.je.DatabaseException
public com.sleepycat.bind.serial.StoredClassCatalog createStoredClassCatalog(com.sleepycat.je.Database catalogDb) throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException
public com.sleepycat.je.Database createDatabase(com.sleepycat.je.Environment env, String name) throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException
public com.sleepycat.collections.StoredMap<Object,InternalCacheEntry> createStoredMapViewOfDatabase(com.sleepycat.je.Database database, com.sleepycat.bind.serial.StoredClassCatalog classCatalog, StreamingMarshaller m) throws com.sleepycat.je.DatabaseException
StoredMap
persisted by the database
database
- where entries in the StoredMap are persistedclassCatalog
- location to store class descriptions
com.sleepycat.je.DatabaseException
- if the StoredMap cannot be opened.public com.sleepycat.collections.StoredSortedMap<Long,Object> createStoredSortedMapForKeyExpiry(com.sleepycat.je.Database database, com.sleepycat.bind.serial.StoredClassCatalog classCatalog, StreamingMarshaller marshaller) throws com.sleepycat.je.DatabaseException
StoredMap
persisted by the database
database
- where entries in the StoredMap are persistedclassCatalog
- location to store class descriptions
com.sleepycat.je.DatabaseException
- if the StoredMap cannot be opened.
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |