01: /*
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 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: * Initial developer(s): ____________________________________.
22: * Contributor(s): Michel Bruno and Guillaume Riviere
23: *
24: * --------------------------------------------------------------------------
25: * $Id: JmxResourceAdapterMBean.java 5699 2004-10-29 23:33:37Z ehardesty $
26: * --------------------------------------------------------------------------
27: */
28:
29: package org.objectweb.jonas.resource;
30:
31: import java.util.Properties;
32: import java.net.URL;
33:
34: /**
35: * MBean interface for general Resource Management
36: * MBean type: Standard
37: * MBean model: delegate
38: *
39: * @author Michel Bruno and Guillaume Riviere<br>
40: * Contributor Michel-Ange Anton (add 'filename', 'inEarCase', 'earURL' properties)
41: */
42: public interface JmxResourceAdapterMBean {
43:
44: /**
45: * return the Adaptator Properties
46: * @return Properties adaptor properties
47: */
48: Properties getProperties();
49:
50: /**
51: * return the jndi name
52: * @return String jndiname
53: */
54: String getJndiName();
55:
56: /**
57: * Accessor the filename of the resource adapter.
58: * @return String the filename
59: */
60: String getFilename();
61:
62: /**
63: * Accessor the flag indicating if the resource adapter is in Ear.
64: * @return boolean Flag if this resource adapter is in Ear
65: */
66: boolean isInEarCase();
67:
68: /**
69: * Accessor the URL of the Ear if the resource adapter is in Ear.
70: * @return URL of the Ear or null
71: */
72: URL getEarURL();
73: }
|