1 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 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 sessionId); 30 31 void registerSessionsController(SessionsComptroller comptroller); 32 33 void sessionCreated(); 34 35 void sessionDestroyed(); 36 37 void requestProcessed(); 38 39 } 40 | Popular Tags |