|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.helidb.impl.txn.log.LoggingTransactionalDatabaseBuilder<K,V>
K - The type of keys in the database.V - The type of values in the database.public class LoggingTransactionalDatabaseBuilder<K,V>
This is a builder object for building LoggingTransactionalDatabase
objects. It can be reused to create several objects with similar
configurations.
| Constructor Summary | |
|---|---|
LoggingTransactionalDatabaseBuilder()
|
|
| Method Summary | ||
|---|---|---|
|
create(DatabaseBackend<K,V,P> backend,
ReadWritableFile logFile)
Create the database. |
|
LoggingTransactionalDatabaseBuilder<K,V> |
setKeySerializer(Serializer<K> ks)
Set a key serializer. |
|
LoggingTransactionalDatabaseBuilder<K,V> |
setLogAdapter(LogAdapterHolder lah)
Set a log adapter. |
|
LoggingTransactionalDatabaseBuilder<K,V> |
setValueSerializer(Serializer<V> vs)
Set a value serializer. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoggingTransactionalDatabaseBuilder()
| Method Detail |
|---|
public LoggingTransactionalDatabaseBuilder<K,V> setKeySerializer(Serializer<K> ks)
ks - The key serializer.
thispublic LoggingTransactionalDatabaseBuilder<K,V> setValueSerializer(Serializer<V> vs)
vs - The value serializer.
this.public LoggingTransactionalDatabaseBuilder<K,V> setLogAdapter(LogAdapterHolder lah)
StdOutLogAdapter.
lah - A log adapter holder.
this
public <P> LoggingTransactionalDatabase<K,V,P> create(DatabaseBackend<K,V,P> backend,
ReadWritableFile logFile)
P - The type of positions in the database backend.backend - The database backend.logFile - The file where the database will write its rollback log.
LoggingTransactionalDatabase object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||