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.xmlet;
09:
10: import javax.management.ObjectName;
11: import javax.management.loading.MLetMBean;
12:
13: import org.huihoo.jfox.service.ServiceSupportMBean;
14:
15: /**
16: * MLet Monitor interface
17: *
18: * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
19: */
20:
21: public interface DirMLetMBean extends ServiceSupportMBean {
22: /**
23: * get the pathes have loaded
24: */
25: String[] getPathes();
26:
27: /**
28: * add a path want to be load, must be a directory
29: */
30: void addPath(String path);
31:
32: /**
33: * set the ObjectName of MLet for load MBean
34: */
35: void setMLet(ObjectName mletObjectName);
36:
37: /**
38: * get is't MLet ObjectName
39: */
40: ObjectName getMLet();
41:
42: /**
43: * the object instance of it's MLet
44: */
45: MLetMBean getMLetInstance();
46:
47: /**
48: * set the sleep time in millisecond
49: */
50: public void setSleepTime(long milSec);
51:
52: public long getSleepTime();
53:
54: }
|