Package org.apache.hadoop.hbase.wal
Class LazyInitializedWALProvider
java.lang.Object
org.apache.hadoop.hbase.wal.LazyInitializedWALProvider
- All Implemented Interfaces:
Closeable,AutoCloseable
A lazy initialized WAL provider for holding the WALProvider for some special tables, such as
hbase:meta, hbase:replication, etc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Abortableprivate final WALFactoryprivate final AtomicReference<WALProvider>private final Stringprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionLazyInitializedWALProvider(WALFactory factory, String providerId, String providerConfigName, Abortable abortable) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()(package private) WALProvider(package private) WALProviderGet the provider if it already initialized, otherwise just returnnullinstead of creating it.(package private) voidshutdown()
-
Field Details
-
factory
-
providerId
-
providerConfigName
-
abortable
-
holder
-
-
Constructor Details
-
LazyInitializedWALProvider
LazyInitializedWALProvider(WALFactory factory, String providerId, String providerConfigName, Abortable abortable)
-
-
Method Details
-
getProvider
- Throws:
IOException
-
getProviderNoCreate
Get the provider if it already initialized, otherwise just returnnullinstead of creating it. -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
shutdown
- Throws:
IOException
-