KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > async > api > StageMonitor


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.async.api;
5
6 public interface StageMonitor {
7   
8   public void eventBegin(int queueDepth);
9
10   public void flush();
11
12   public Analysis analyze();
13
14   public interface Analysis {
15     
16     public Number JavaDoc getEventCount();
17
18     public Number JavaDoc getElapsedTime();
19     
20     public Number JavaDoc getEventsPerSecond();
21
22     public Number JavaDoc getMinQueueDepth();
23
24     public Number JavaDoc getMaxQueueDepth();
25
26     public Number JavaDoc getAvgQueueDepth();
27     
28   }
29 }
30
Popular Tags