com.caucho.jmx.remote
Class ReadJMXService

java.lang.Object
  extended by com.caucho.services.server.GenericService
      extended by com.caucho.jmx.remote.ReadJMXService
All Implemented Interfaces:
RemoteJMX, Service
Direct Known Subclasses:
JMXService

public class ReadJMXService
extends GenericService
implements RemoteJMX

JMX service.


Field Summary
 
Fields inherited from class com.caucho.services.server.GenericService
config
 
Constructor Summary
ReadJMXService()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String objectName, java.lang.String attributeName)
          Returns an attribute.
 javax.management.MBeanInfo getMBeanInfo(java.lang.String objectName)
          Returns the mbean info
 void init()
          Initialize the server.
 void setMBeanServer(javax.management.MBeanServerConnection server)
          Sets the mbean server.
 
Methods inherited from class com.caucho.services.server.GenericService
destroy, getInitParameter, getObjectId, getRequest, getServiceId, getServiceName, getServletConfig, getServletContext, init, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadJMXService

public ReadJMXService()
Method Detail

setMBeanServer

public void setMBeanServer(javax.management.MBeanServerConnection server)
Sets the mbean server.


init

public void init()
Initialize the server.

Overrides:
init in class GenericService

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo(java.lang.String objectName)
                                        throws javax.management.JMException,
                                               java.io.IOException
Returns the mbean info

Specified by:
getMBeanInfo in interface RemoteJMX
Throws:
javax.management.JMException
java.io.IOException

getAttribute

public java.lang.Object getAttribute(java.lang.String objectName,
                                     java.lang.String attributeName)
                              throws javax.management.JMException,
                                     java.io.IOException
Returns an attribute.

Specified by:
getAttribute in interface RemoteJMX
Throws:
javax.management.JMException
java.io.IOException