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
Modifier and TypeFieldDescriptionprivate final Abortable
private final WALFactory
private final AtomicReference<WALProvider>
private final String
private final String
-
Constructor Summary
ConstructorDescriptionLazyInitializedWALProvider
(WALFactory factory, String providerId, String providerConfigName, Abortable abortable) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
(package private) WALProvider
(package private) WALProvider
Get the provider if it already initialized, otherwise just returnnull
instead of creating it.(package private) void
shutdown()
-
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 returnnull
instead of creating it. -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
shutdown
- Throws:
IOException
-