org.openadaptor.adaptor.jmx
Class JMXAdapter

java.lang.Object
  extended by org.openadaptor.adaptor.jmx.JMXAdapter
All Implemented Interfaces:
javax.management.NotificationBroadcaster, JMXAdapterMBean

public class JMXAdapter
extends java.lang.Object
implements JMXAdapterMBean

Class turns OpenAdaptor in a MBean for place inside a suitable container. Such as jboss.

Author:
Chris Kimpton

Field Summary
(package private) static org.apache.log4j.Logger log
           
 
Constructor Summary
JMXAdapter()
           
 
Method Summary
 void addNotificationListener(javax.management.NotificationListener A, javax.management.NotificationFilter B, java.lang.Object C)
           
 void destroy()
           
 java.lang.String getAdaptor()
           
 java.lang.String getName()
           
 javax.management.MBeanNotificationInfo[] getNotificationInfo()
           
 java.lang.String getPropertiesFile()
           
 void init()
           
 void removeNotificationListener(javax.management.NotificationListener A)
           
 void setAdaptor(java.lang.String adaptor)
           
 void setPropertiesFile(java.lang.String file)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static org.apache.log4j.Logger log
Constructor Detail

JMXAdapter

public JMXAdapter()
           throws javax.management.MBeanException
Throws:
javax.management.MBeanException
Method Detail

addNotificationListener

public void addNotificationListener(javax.management.NotificationListener A,
                                    javax.management.NotificationFilter B,
                                    java.lang.Object C)
Specified by:
addNotificationListener in interface javax.management.NotificationBroadcaster

getNotificationInfo

public javax.management.MBeanNotificationInfo[] getNotificationInfo()
Specified by:
getNotificationInfo in interface javax.management.NotificationBroadcaster

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener A)
Specified by:
removeNotificationListener in interface javax.management.NotificationBroadcaster

init

public void init()
          throws java.lang.Exception
Specified by:
init in interface JMXAdapterMBean
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface JMXAdapterMBean
Throws:
java.lang.Exception

stop

public void stop()
Specified by:
stop in interface JMXAdapterMBean

destroy

public void destroy()
Specified by:
destroy in interface JMXAdapterMBean

getName

public java.lang.String getName()

getPropertiesFile

public java.lang.String getPropertiesFile()
Specified by:
getPropertiesFile in interface JMXAdapterMBean

getAdaptor

public java.lang.String getAdaptor()
Specified by:
getAdaptor in interface JMXAdapterMBean

setPropertiesFile

public void setPropertiesFile(java.lang.String file)
Specified by:
setPropertiesFile in interface JMXAdapterMBean

setAdaptor

public void setAdaptor(java.lang.String adaptor)
Specified by:
setAdaptor in interface JMXAdapterMBean