Package org.apache.bookkeeper.bookie
Class HandleFactoryImpl
- java.lang.Object
-
- org.apache.bookkeeper.bookie.HandleFactoryImpl
-
- All Implemented Interfaces:
HandleFactory
,LedgerStorage.LedgerDeletionListener
class HandleFactoryImpl extends java.lang.Object implements HandleFactory, LedgerStorage.LedgerDeletionListener
-
-
Field Summary
Fields Modifier and Type Field Description (package private) LedgerStorage
ledgerStorage
-
Constructor Summary
Constructors Constructor Description HandleFactoryImpl(LedgerStorage ledgerStorage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LedgerDescriptor
getHandle(long ledgerId, byte[] masterKey, boolean journalReplay)
LedgerDescriptor
getReadOnlyHandle(long ledgerId)
void
ledgerDeleted(long ledgerId)
-
-
-
Field Detail
-
ledgerStorage
final LedgerStorage ledgerStorage
-
-
Constructor Detail
-
HandleFactoryImpl
HandleFactoryImpl(LedgerStorage ledgerStorage)
-
-
Method Detail
-
getHandle
public LedgerDescriptor getHandle(long ledgerId, byte[] masterKey, boolean journalReplay) throws java.io.IOException, BookieException
- Specified by:
getHandle
in interfaceHandleFactory
- Throws:
java.io.IOException
BookieException
-
getReadOnlyHandle
public LedgerDescriptor getReadOnlyHandle(long ledgerId) throws java.io.IOException, Bookie.NoLedgerException
- Specified by:
getReadOnlyHandle
in interfaceHandleFactory
- Throws:
java.io.IOException
Bookie.NoLedgerException
-
ledgerDeleted
public void ledgerDeleted(long ledgerId)
- Specified by:
ledgerDeleted
in interfaceLedgerStorage.LedgerDeletionListener
-
-