01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 2006 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * --------------------------------------------------------------------------
22: * $Id: DomainMonitorMBean.java 9449 2006-08-23 12:20:24Z danesa $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas.management.monitoring;
25:
26: /**
27: * Implements MBean interface for domain monitoring
28: * @author Adriana Danes
29: */
30: public interface DomainMonitorMBean {
31: /**
32: * @return Array of OBJECT_NAMEs of all ServerProxy MBeans
33: */
34: String[] getProxys();
35:
36: /**
37: * @return Array of OBJECT_NAMEs of all cluster MBeans
38: */
39: String[] getClusters();
40:
41: /**
42: * @param sec monitoring period
43: */
44: void setMonitoringPeriod(int sec);
45:
46: /**
47: * @return the monitoring period in sec
48: */
49: int getMonitoringPeriod();
50:
51: /**
52: * Get the list of server where a file is being deployed
53: * @param filename file to deploy
54: * @return server name
55: */
56: String[] getDeployServers(String filename);
57:
58: /**
59: * Get the current state (string form) of deployment operation
60: * @param filename file to deploy
61: * @param servername server where deployment is done
62: * @return one of "progress","ok","fail"
63: */
64: String getDeployState(String filename, String servername);
65:
66: /**
67: * Get the error message associated to the error state
68: * @param filename file to deploy
69: * @param servername server where deployment is done
70: * @return error message
71: */
72: String getErrorMessage(String filename, String servername);
73:
74: /**
75: * Forget all deploy information
76: */
77: void forgetAllDeploy();
78: }
|