01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.com
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package org.huihoo.jfox.pool;
09:
10: import org.huihoo.jfox.service.ComponentSupportMBean;
11:
12: /**
13: * the interface that want to expose to jmx
14: * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
15: */
16:
17: public interface ObjectPoolMBean extends ComponentSupportMBean {
18: /**
19: * Clears any objects sitting idle in the pool, releasing any associated resources
20: */
21: void clear();
22:
23: /**
24: * get the factory use to create new instances
25: */
26: ObjectFactory getObjectFactory();
27:
28: /**
29: * get the pooled object's class type, it return by object pool's factory
30: * @return
31: */
32: String getObjectClass();
33:
34: /**
35: * get the count of working object
36: * @return
37: */
38: int getWorking();
39:
40: /**
41: * get the count of rest object
42: * @return
43: */
44: int getRest();
45:
46: }
|