org.apache.accumulo.server.test.functional
Class FunctionalTest
java.lang.Object
org.apache.accumulo.server.test.functional.FunctionalTest
- Direct Known Subclasses:
- AddSplitTest, BadIteratorMincTest, BatchScanSplitTest, BatchWriterFlushTest, BloomFilterTest, BulkFileTest, BulkSplitOptimizationTest, ConcurrencyTest, ConstraintTest, CreateAndUseTest, CreateManyScannersTest, DeleteEverythingTest, LargeRowTest, MaxOpenTest, PermissionsTest.SystemPermissionsTest, PermissionsTest.TablePermissionsTest, RegExTest, RowDeleteTest, ScanIteratorTest, ScanRangeTest, ScanSessionTimeOutTest, ServerSideErrorTest, SplitRecoveryTest, VisibilityTest
public abstract class FunctionalTest
- extends java.lang.Object
Method Summary |
protected void |
bulkImport(org.apache.hadoop.fs.FileSystem fs,
java.lang.String table,
java.lang.String dir)
|
protected void |
checkMapFiles(java.lang.String tableName,
int minTablets,
int maxTablets,
int minMapFiles,
int maxMapFiles)
A utility function that checks that each tablet has an expected number of map files. |
protected void |
checkSplits(java.lang.String table,
int min,
int max)
A utility method for use by functional test that ensures a tables has between min and max split points inclusive. |
abstract void |
cleanup()
|
protected Connector |
getConnector()
|
protected AuthInfo |
getCredentials()
|
abstract java.util.Map<java.lang.String,java.lang.String> |
getInitialConfig()
|
protected Instance |
getInstance()
|
protected java.lang.String |
getMaster()
|
protected java.lang.String |
getPassword()
|
abstract java.util.List<FunctionalTest.TableSetup> |
getTablesToCreate()
|
protected java.lang.String |
getUsername()
|
static void |
main(java.lang.String[] args)
|
static java.util.Map<java.lang.String,java.lang.String> |
parseConfig(java.lang.String... perTableConfigs)
|
abstract void |
run()
|
protected void |
setInstanceName(java.lang.String instanceName)
|
protected void |
setMaster(java.lang.String master)
|
protected void |
setPassword(java.lang.String password)
|
void |
setup()
|
protected void |
setUsername(java.lang.String username)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FunctionalTest
public FunctionalTest()
parseConfig
public static java.util.Map<java.lang.String,java.lang.String> parseConfig(java.lang.String... perTableConfigs)
setMaster
protected void setMaster(java.lang.String master)
getMaster
protected java.lang.String getMaster()
setUsername
protected void setUsername(java.lang.String username)
getUsername
protected java.lang.String getUsername()
setPassword
protected void setPassword(java.lang.String password)
getPassword
protected java.lang.String getPassword()
getConnector
protected Connector getConnector()
throws AccumuloException,
AccumuloSecurityException
- Throws:
AccumuloException
AccumuloSecurityException
getInstance
protected Instance getInstance()
setInstanceName
protected void setInstanceName(java.lang.String instanceName)
getCredentials
protected AuthInfo getCredentials()
getInitialConfig
public abstract java.util.Map<java.lang.String,java.lang.String> getInitialConfig()
getTablesToCreate
public abstract java.util.List<FunctionalTest.TableSetup> getTablesToCreate()
run
public abstract void run()
throws java.lang.Exception
- Throws:
java.lang.Exception
cleanup
public abstract void cleanup()
throws java.lang.Exception
- Throws:
java.lang.Exception
setup
public void setup()
throws java.lang.Exception
- Throws:
java.lang.Exception
checkSplits
protected void checkSplits(java.lang.String table,
int min,
int max)
throws java.lang.Exception
- A utility method for use by functional test that ensures a tables has between min and max split points inclusive. If not an exception is thrown.
- Throws:
java.lang.Exception
checkMapFiles
protected void checkMapFiles(java.lang.String tableName,
int minTablets,
int maxTablets,
int minMapFiles,
int maxMapFiles)
throws java.lang.Exception
- A utility function that checks that each tablet has an expected number of map files.
- Throws:
java.lang.Exception
bulkImport
protected void bulkImport(org.apache.hadoop.fs.FileSystem fs,
java.lang.String table,
java.lang.String dir)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.