org.objectweb.jonas.resource
Class JmxResourceAdapter

java.lang.Object
  extended byorg.objectweb.jonas.resource.JmxResourceAdapter
All Implemented Interfaces:
JmxResourceAdapterMBean

public class JmxResourceAdapter
extends java.lang.Object
implements JmxResourceAdapterMBean

MBean class for general Resource Management MBean type: Standard MBean model: delegate

Author:
Michel Bruno and Guillaume Riviere
Contributor Michel-Ange Anton (add 'filename', 'inEarCase', 'earURL' properties)

Constructor Summary
JmxResourceAdapter(java.util.Properties prop, java.lang.String jndiname, java.lang.String filename, boolean inEarCase, java.net.URL earURL)
           
 
Method Summary
 java.net.URL getEarURL()
          Accessor the URL of the Ear if the resource adapter is in Ear.
 java.lang.String getFilename()
          Accessor the filename of the resource adapter.
 java.lang.String getJndiName()
          return the jndi name
 java.util.Properties getProperties()
          return the Adaptator Properties
 boolean isInEarCase()
          Accessor the flag indicating if the resource adapter is in Ear.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxResourceAdapter

public JmxResourceAdapter(java.util.Properties prop,
                          java.lang.String jndiname,
                          java.lang.String filename,
                          boolean inEarCase,
                          java.net.URL earURL)
Method Detail

getProperties

public java.util.Properties getProperties()
return the Adaptator Properties

Specified by:
getProperties in interface JmxResourceAdapterMBean

getJndiName

public java.lang.String getJndiName()
return the jndi name

Specified by:
getJndiName in interface JmxResourceAdapterMBean

getFilename

public java.lang.String getFilename()
Accessor the filename of the resource adapter.

Specified by:
getFilename in interface JmxResourceAdapterMBean
Returns:
The filename

isInEarCase

public boolean isInEarCase()
Accessor the flag indicating if the resource adapter is in Ear.

Specified by:
isInEarCase in interface JmxResourceAdapterMBean
Returns:
Flag if this resource adapter is in Ear

getEarURL

public java.net.URL getEarURL()
Accessor the URL of the Ear if the resource adapter is in Ear.

Specified by:
getEarURL in interface JmxResourceAdapterMBean
Returns:
The URL of the Ear or null