Package org.apache.helix.controller.stages

Examples of org.apache.helix.controller.stages.StatsAggregationStage


    _period = period;

    // health stats pipeline
    _healthStatsAggregationPipeline = new Pipeline();
    _healthStatsAggregationPipeline.addStage(new ReadHealthDataStage());
    StatsAggregationStage statAggregationStage = new StatsAggregationStage();
    _healthStatsAggregationPipeline.addStage(statAggregationStage);
    _alertItemCollection = statAggregationStage.getClusterAlertMBeanCollection();

    registerStageLatencyMonitor(_healthStatsAggregationPipeline);
  }
View Full Code Here


public class TestParseInfoFromAlert extends ZkStandAloneCMTestBase
{
  @Test
  public void TestParse()
  {
    StatsAggregationStage stage = new StatsAggregationStage();
    String controllerName = CONTROLLER_PREFIX + "_0";
    HelixManager manager = _startCMResultMap.get(controllerName)._manager;
   
    String instanceName  = stage.parseInstanceName("localhost_12918.TestStat@DB=123.latency", manager);
    Assert.assertTrue(instanceName.equals("localhost_12918"));
   
    instanceName  = stage.parseInstanceName("localhost_12955.TestStat@DB=123.latency", manager);
    Assert.assertTrue(instanceName == null);
   
   
    instanceName  = stage.parseInstanceName("localhost_12922.TestStat@DB=123.latency", manager);
    Assert.assertTrue(instanceName.equals("localhost_12922"));
   
   

    String resourceName  = stage.parseResourceName("localhost_12918.TestStat@DB=TestDB.latency", manager);
    Assert.assertTrue(resourceName.equals("TestDB"));
   

    String partitionName  = stage.parsePartitionName("localhost_12918.TestStat@DB=TestDB;Partition=TestDB_22.latency", manager);
    Assert.assertTrue(partitionName.equals("TestDB_22"));
  }
View Full Code Here

    _manager = manager;

    // health stats pipeline
    _healthStatsAggregationPipeline = new Pipeline();
    _healthStatsAggregationPipeline.addStage(new ReadHealthDataStage());
    StatsAggregationStage statAggregationStage = new StatsAggregationStage();
    _healthStatsAggregationPipeline.addStage(statAggregationStage);
    _alertItemCollection = statAggregationStage.getClusterAlertMBeanCollection();

    registerStageLatencyMonitor(_healthStatsAggregationPipeline);
  }
View Full Code Here

    _period = period;

    // health stats pipeline
    _healthStatsAggregationPipeline = new Pipeline();
    _healthStatsAggregationPipeline.addStage(new ReadHealthDataStage());
    StatsAggregationStage statAggregationStage = new StatsAggregationStage();
    _healthStatsAggregationPipeline.addStage(statAggregationStage);
    _alertItemCollection = statAggregationStage.getClusterAlertMBeanCollection();

    registerStageLatencyMonitor(_healthStatsAggregationPipeline);
  }
View Full Code Here

TOP

Related Classes of org.apache.helix.controller.stages.StatsAggregationStage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.