@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
WALProvider
init
in interface WALProvider
factory
- 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
nullIOException
public WAL getWAL(byte[] identifier) throws IOException
getWAL
in interface WALProvider
identifier
- may not be null. contents will not be altered.IOException
public void close() throws IOException
WALProvider
close
in interface WALProvider
IOException
public void shutdown() throws IOException
WALProvider
shutdown
in interface WALProvider
IOException