Package org.apache.accumulo.test
Class VolumeChooserIT
- java.lang.Object
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.test.functional.ConfigurableMacBase
-
- org.apache.accumulo.test.VolumeChooserIT
-
public class VolumeChooserIT extends ConfigurableMacBase
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
alpha_rows
-
Fields inherited from class org.apache.accumulo.test.functional.ConfigurableMacBase
cluster, log, ROOT_PASSWORD
-
Fields inherited from class org.apache.accumulo.harness.AccumuloITBase
testName
-
-
Constructor Summary
Constructors Constructor Description VolumeChooserIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addSplits(AccumuloClient accumuloClient, String tableName)
void
configure(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
protected int
defaultTimeoutSeconds()
time to wait per-method before declaring a timeout, in seconds.void
includeSpecialVolumeForTable()
void
twoTablesDiffChoosers()
void
twoTablesPreferredVolumeChooser()
void
twoTablesRandomVolumeChooser()
static void
verifyNoVolumes(AccumuloClient accumuloClient, Range tableRange)
static void
verifyVolumes(AccumuloClient accumuloClient, Range tableRange, String vol)
static void
verifyWaLogVolumes(AccumuloClient accumuloClient, Range tableRange, String vol)
void
waLogsSentToConfiguredVolumes()
static void
writeAndReadData(AccumuloClient accumuloClient, String tableName)
static void
writeDataToTable(AccumuloClient accumuloClient, String tableName, String[] rows)
-
Methods inherited from class org.apache.accumulo.test.functional.ConfigurableMacBase
beforeClusterStart, configureForEnvironment, configureForSsl, exec, getClientProperties, getCluster, getServerContext, setUp, tearDown
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, getSslDir, getUniqueNames, testsShouldTimeout
-
-
-
-
Field Detail
-
alpha_rows
public static String[] alpha_rows
-
-
Method Detail
-
defaultTimeoutSeconds
protected int defaultTimeoutSeconds()
Description copied from class:AccumuloITBase
time to wait per-method before declaring a timeout, in seconds.- Overrides:
defaultTimeoutSeconds
in classAccumuloITBase
-
configure
public void configure(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
- Overrides:
configure
in classConfigurableMacBase
-
addSplits
public static void addSplits(AccumuloClient accumuloClient, String tableName) throws TableNotFoundException, AccumuloException, AccumuloSecurityException
-
writeAndReadData
public static void writeAndReadData(AccumuloClient accumuloClient, String tableName) throws Exception
- Throws:
Exception
-
writeDataToTable
public static void writeDataToTable(AccumuloClient accumuloClient, String tableName, String[] rows) throws Exception
- Throws:
Exception
-
verifyVolumes
public static void verifyVolumes(AccumuloClient accumuloClient, Range tableRange, String vol) throws Exception
- Throws:
Exception
-
verifyNoVolumes
public static void verifyNoVolumes(AccumuloClient accumuloClient, Range tableRange) throws Exception
- Throws:
Exception
-
verifyWaLogVolumes
public static void verifyWaLogVolumes(AccumuloClient accumuloClient, Range tableRange, String vol) throws TableNotFoundException
- Throws:
TableNotFoundException
-
twoTablesPreferredVolumeChooser
public void twoTablesPreferredVolumeChooser() throws Exception
- Throws:
Exception
-
twoTablesRandomVolumeChooser
public void twoTablesRandomVolumeChooser() throws Exception
- Throws:
Exception
-
includeSpecialVolumeForTable
public void includeSpecialVolumeForTable() throws Exception
- Throws:
Exception
-
-