Package com.dianping.cat.analysis

Examples of com.dianping.cat.analysis.MessageAnalyzerManager


    manager.initialize(new File("/data/appdatas/cat/server.xml"));
  }

  @Test
  public void testUpload() throws Exception {
    MessageAnalyzerManager manager = lookup(MessageAnalyzerManager.class);
    long now = System.currentTimeMillis();
    int num = 10000;
    DefaultMessageQueue queue = new DefaultMessageQueue(num);

    for (int i = 0; i < num; i++) {
      queue.offer(newMessageTree(i, now + i * 10L));
    }

    MessageAnalyzer analyzer = manager.getAnalyzer("dump", now);

    analyzer.analyze(queue);
    analyzer.doCheckpoint(true);

    UploaderAndCleaner uploader = lookup(UploaderAndCleaner.class);
View Full Code Here

TOP

Related Classes of com.dianping.cat.analysis.MessageAnalyzerManager

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.