KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > management > beans > sessions > SessionMonitorMBean


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.management.beans.sessions;
5
6 import com.tc.management.TerracottaMBean;
7
8
9 public interface SessionMonitorMBean extends TerracottaMBean {
10
11   public static interface SessionsComptroller {
12     boolean killSession(String JavaDoc sessionId);
13   }
14
15   int getRequestCount();
16
17   int getRequestRatePerSecond();
18
19   int getCreatedSessionCount();
20
21   int getSessionCreationRatePerMinute();
22
23   int getDestroyedSessionCount();
24
25   int getSessionDestructionRatePerMinute();
26
27   void reset();
28
29   boolean expireSession(String JavaDoc sessionId);
30
31   void registerSessionsController(SessionsComptroller comptroller);
32
33   void sessionCreated();
34
35   void sessionDestroyed();
36
37   void requestProcessed();
38
39 }
40
Popular Tags