1 /* 2 * JOnAS: Java(TM) Open Application Server 3 * Copyright (C) 1999 Bull S.A. 4 * Contact: jonas-team@objectweb.org 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * 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,v 1.4 2004/10/29 23:33:37 ehardesty Exp $ 26 * -------------------------------------------------------------------------- 27 */ 28 29 package org.objectweb.jonas.resource; 30 31 32 import java.util.Properties; 33 import java.net.URL; 34 35 /** 36 * MBean interface for general Resource Management 37 * MBean type: Standard 38 * MBean model: delegate 39 * 40 * @author Michel Bruno and Guillaume Riviere<br> 41 * Contributor Michel-Ange Anton (add 'filename', 'inEarCase', 'earURL' properties) 42 */ 43 public interface JmxResourceAdapterMBean { 44 45 /** 46 * return the Adaptator Properties 47 * @return Properties adaptor properties 48 */ 49 Properties getProperties() ; 50 51 /** 52 * return the jndi name 53 * @return String jndiname 54 */ 55 String getJndiName() ; 56 57 /** 58 * Accessor the filename of the resource adapter. 59 * @return String the filename 60 */ 61 String getFilename(); 62 63 /** 64 * Accessor the flag indicating if the resource adapter is in Ear. 65 * @return boolean Flag if this resource adapter is in Ear 66 */ 67 boolean isInEarCase(); 68 69 /** 70 * Accessor the URL of the Ear if the resource adapter is in Ear. 71 * @return URL of the Ear or null 72 */ 73 URL getEarURL(); 74 } 75