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.jmx;
09:
10: import java.util.Iterator;
11: import java.util.List;
12: import javax.management.ObjectName;
13:
14: /**
15: *
16: * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
17: */
18:
19: public interface MBeanServerRepository {
20:
21: public MBeanMetaData get(ObjectName name);
22:
23: public void put(ObjectName name, MBeanMetaData metadata);
24:
25: public void remove(ObjectName name);
26:
27: public int size();
28:
29: public boolean contains(ObjectName name);
30:
31: /**
32: * value iterator, MBeanMetaData contains the ObjectName
33: * @return
34: */
35: public Iterator iterator();
36:
37: /**
38: * get all ObjectName
39: * @return
40: */
41: public List keys();
42: }
|