Class MasterMetricsIT
- java.lang.Object
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.harness.AccumuloClusterHarness
-
- org.apache.accumulo.test.functional.MasterMetricsIT
-
- All Implemented Interfaces:
ClusterUsers
,MiniClusterConfigurationCallback
public class MasterMetricsIT extends AccumuloClusterHarness
Functional test that uses a hadoop metrics 2 file sink to read published metrics for verification.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.harness.AccumuloClusterHarness
AccumuloClusterHarness.ClusterType
-
Nested classes/interfaces inherited from interface org.apache.accumulo.harness.MiniClusterConfigurationCallback
MiniClusterConfigurationCallback.NoCallback
-
-
Field Summary
-
Fields inherited from class org.apache.accumulo.harness.AccumuloClusterHarness
cluster, clusterConf, krb, type
-
Fields inherited from class org.apache.accumulo.harness.AccumuloITBase
testName
-
Fields inherited from interface org.apache.accumulo.harness.MiniClusterConfigurationCallback
NO_CALLBACK
-
-
Constructor Summary
Constructors Constructor Description MasterMetricsIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
void
compactionMetrics()
Run a few compactions - this should trigger the a dynamic op type to be included in the metrics.void
configureMiniCluster(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
protected int
defaultTimeoutSeconds()
time to wait per-method before declaring a timeout, in seconds.void
metricsPublished()
Validates that the expected metrics are published - this excludes the dynamic metrics derived from operation types.void
setup()
-
Methods inherited from class org.apache.accumulo.harness.AccumuloClusterHarness
canRunTest, cleanupTables, cleanupUsers, getAdminPrincipal, getAdminToken, getAdminUser, getCluster, getClusterConfiguration, getClusterControl, getClusterType, getConnector, getFileSystem, getKdc, getUsableDir, getUser, setUp, setupCluster, teardownCluster, tearDownKdc
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, getSslDir, getUniqueNames, testsShouldTimeout
-
-
-
-
Method Detail
-
configureMiniCluster
public void configureMiniCluster(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
- Specified by:
configureMiniCluster
in interfaceMiniClusterConfigurationCallback
- Overrides:
configureMiniCluster
in classAccumuloClusterHarness
-
setup
public void setup()
-
cleanup
public void cleanup()
-
defaultTimeoutSeconds
protected int defaultTimeoutSeconds()
Description copied from class:AccumuloITBase
time to wait per-method before declaring a timeout, in seconds.- Overrides:
defaultTimeoutSeconds
in classAccumuloITBase
-
metricsPublished
public void metricsPublished()
Validates that the expected metrics are published - this excludes the dynamic metrics derived from operation types.
-
compactionMetrics
public void compactionMetrics()
Run a few compactions - this should trigger the a dynamic op type to be included in the metrics.
-
-