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);