1 16 package org.mortbay.jetty.servlet.jmx; 17 18 import javax.management.MBeanException ; 19 20 import org.mortbay.jetty.servlet.SessionManager; 21 22 23 24 29 public class AbstractSessionManagerMBean extends SessionManagerMBean 30 { 31 32 public AbstractSessionManagerMBean() 33 throws MBeanException 34 {} 35 36 37 public AbstractSessionManagerMBean(SessionManager object) 38 throws MBeanException 39 { 40 super(object); 41 } 42 43 44 protected void defineManagedResource() 45 { 46 super.defineManagedResource(); 47 defineAttribute("maxInactiveInterval"); 48 defineAttribute("scavengePeriod"); 49 defineAttribute("useRequestedId"); 50 defineAttribute("workerName"); 51 defineAttribute("sessions"); 52 defineAttribute ("minSessions"); 53 defineAttribute ("maxSessions"); 54 defineOperation ("resetStats",IMPACT_ACTION); 55 } 56 57 } 58 | Popular Tags |