Class ConfigurableMacBase
- java.lang.Object
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.test.functional.ConfigurableMacBase
-
- Direct Known Subclasses:
AccumuloOutputFormatIT
,AuditMessageIT
,BackupMasterIT
,BalanceAfterCommsFailureIT
,BalanceFasterIT
,BalanceWithOfflineTableIT
,BulkImportMonitoringIT
,CleanTmpIT
,CloseWriteAheadLogReferencesIT
,CompactionRateLimitingIT
,ConfigurableCompactionIT
,ConfigurableMajorCompactionIT
,CountIT
,DetectDeadTabletServersIT
,DumpConfigIT
,DurabilityIT
,ExistingMacIT
,FileArchiveIT
,FinishedWorkUpdaterIT
,GarbageCollectorCommunicatesWithTServersIT
,GarbageCollectorIT
,GarbageCollectWALIT
,GcMetricsIT
,GetFileInfoBulkIT
,HalfDeadTServerIT
,LargeSplitRowIT
,LateLastContactIT
,ManySplitIT
,MapReduceIT
,MasterRepairsDualAssignmentIT
,MergeStateIT
,MetadataMaxFilesIT
,MetadataSplitIT
,MetaGetsReadersIT
,MetaRecoveryIT
,MissingWalHeaderCompletesRecoveryIT
,MonitorLoggingIT
,MonitorSslIT
,MultiInstanceReplicationIT
,MultiTableRecoveryIT
,MultiTserverReplicationIT
,ProxyDurabilityIT
,RecoveryWithEmptyRFileIT
,RegexGroupBalanceIT
,RemoveCompleteReplicationRecordsIT
,ReplicationIT
,ReplicationOperationsImplIT
,ReplicationRandomWalkIT
,RewriteTabletDirectoriesIT
,SequentialWorkAssignerIT
,SessionDurabilityIT
,ShutdownIT
,SimpleBalancerFairnessIT
,SplitRecoveryIT
,SslIT
,StatusMakerIT
,SuspendedTabletsIT
,SystemCredentialsIT
,TabletServerGivesUpIT
,TabletServerHdfsRestartIT
,TotalQueuedIT
,TracerRecoversAfterOfflineTableIT
,UnorderedWorkAssignerIT
,UnorderedWorkAssignerReplicationIT
,UnusedWalDoesntCloseReplicationStatusIT
,UnusedWALIT
,VerifySerialRecoveryIT
,VolumeChooserIT
,VolumeIT
,WaitForBalanceIT
,WALSunnyDayIT
,WatchTheWatchCountIT
,WorkMakerIT
,ZooCacheIT
,ZookeeperRestartIT
public class ConfigurableMacBase extends AccumuloITBase
General Integration-Test base class that provides access to aMiniAccumuloCluster
for testing. Tests using these typically do very disruptive things to the instance, and require specific configuration. Most tests don't need this level of control and should extendAccumuloClusterHarness
instead.
-
-
Field Summary
Fields Modifier and Type Field Description protected MiniAccumuloClusterImpl
cluster
static org.slf4j.Logger
log
protected static String
ROOT_PASSWORD
-
Fields inherited from class org.apache.accumulo.harness.AccumuloITBase
testName
-
-
Constructor Summary
Constructors Constructor Description ConfigurableMacBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
beforeClusterStart(MiniAccumuloConfigImpl cfg)
protected void
configure(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
static void
configureForEnvironment(MiniAccumuloConfigImpl cfg, Class<?> testClass, File folder)
protected static void
configureForSsl(MiniAccumuloConfigImpl cfg, File sslDir)
protected Process
exec(Class<?> clazz, String... args)
protected ClientConfiguration
getClientConfig()
protected MiniAccumuloClusterImpl
getCluster()
protected Connector
getConnector()
protected String
getMonitor()
void
setUp()
void
tearDown()
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, defaultTimeoutSeconds, getSslDir, getUniqueNames, testsShouldTimeout
-
-
-
-
Field Detail
-
log
public static final org.slf4j.Logger log
-
cluster
protected MiniAccumuloClusterImpl cluster
-
ROOT_PASSWORD
protected static final String ROOT_PASSWORD
- See Also:
- Constant Field Values
-
-
Method Detail
-
configure
protected void configure(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
-
beforeClusterStart
protected void beforeClusterStart(MiniAccumuloConfigImpl cfg) throws Exception
- Throws:
Exception
-
configureForEnvironment
public static void configureForEnvironment(MiniAccumuloConfigImpl cfg, Class<?> testClass, File folder)
-
configureForSsl
protected static void configureForSsl(MiniAccumuloConfigImpl cfg, File sslDir)
-
getCluster
protected MiniAccumuloClusterImpl getCluster()
-
getConnector
protected Connector getConnector() throws AccumuloException, AccumuloSecurityException
-
exec
protected Process exec(Class<?> clazz, String... args) throws IOException
- Throws:
IOException
-
getMonitor
protected String getMonitor() throws org.apache.zookeeper.KeeperException, InterruptedException
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
-
getClientConfig
protected ClientConfiguration getClientConfig() throws Exception
- Throws:
Exception
-
-