@InterfaceAudience.Private public class IOTestProvider extends Object implements WALProvider
DefaultWALProvider. Users can configure how much interaction
we have with HDFS with the configuration property "hbase.wal.iotestprovider.operations".
The value should be a comma separated list of allowed operations:
WALProvider.Writer| Constructor and Description |
|---|
IOTestProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
shutdown utstanding WALs and clean up any persisted state.
|
WAL |
getWAL(byte[] identifier) |
void |
init(WALFactory factory,
Configuration conf,
List<WALActionsListener> listeners,
String providerId)
Set up the provider to create wals.
|
void |
shutdown()
persist outstanding WALs to storage and stop accepting new appends.
|
public void init(WALFactory factory, Configuration conf, List<WALActionsListener> listeners, String providerId) throws IOException
WALProviderinit in interface WALProviderfactory - factory that made us, identity used for FS layout. may not be nullconf - may not be nulllisteners - may be nullproviderId - differentiate between providers from one facotry, used for FS layout. may be
nullIOExceptionpublic WAL getWAL(byte[] identifier) throws IOException
getWAL in interface WALProvideridentifier - may not be null. contents will not be altered.IOExceptionpublic void close()
throws IOException
WALProviderclose in interface WALProviderIOExceptionpublic void shutdown()
throws IOException
WALProvidershutdown in interface WALProviderIOException