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)
          Constructor
 
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 Adaptor 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)
Constructor

Parameters:
prop - Properties of RAR
jndiname - String of RAR
filename - String of RAR filename
inEarCase - boolean if in an EAR file
earURL - URL of EAR file
Method Detail

getProperties

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

Specified by:
getProperties in interface JmxResourceAdapterMBean
Returns:
Properties adaptor properties

getJndiName

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

Specified by:
getJndiName in interface JmxResourceAdapterMBean
Returns:
String jndiname

getFilename

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

Specified by:
getFilename in interface JmxResourceAdapterMBean
Returns:
String the filename

isInEarCase

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

Specified by:
isInEarCase in interface JmxResourceAdapterMBean
Returns:
boolean 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:
URL of the Ear or null