Package com.dianping.cat.statistic

Examples of com.dianping.cat.statistic.ServerStatisticManager


  public void test() throws Exception {
    DumpAnalyzer analyzer = new DumpAnalyzer();
    int size = 1000;
    MockLocalMessageBucketManager bucketManager = new MockLocalMessageBucketManager();

    analyzer.setServerStateManager(new ServerStatisticManager());
    analyzer.setBucketManager(bucketManager);
    analyzer.enableLogging(new MockLog());

    for (int i = 0; i < size; i++) {
      analyzer.process(generateMessageTree(i));
View Full Code Here


    long time = System.currentTimeMillis();
    long start = time - time % (3600 * 1000L);
    int size = 100;
    MessageQueue queue = new DefaultMessageQueue(size);
    MockAnalyzer analyzer = new MockAnalyzer();
    ServerStatisticManager serverStateManager = lookup(ServerStatisticManager.class);
    String domain = "cat";

    analyzer.initialize(start, 1000, 1000);

    PeriodTask task = new PeriodTask(serverStateManager, analyzer, queue, start);
View Full Code Here

TOP

Related Classes of com.dianping.cat.statistic.ServerStatisticManager

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.