com.mysql.management.jmx.sunri
Class MysqldTestAgentSunHtmlAdaptor

java.lang.Object
  extended by com.mysql.management.jmx.sunri.MysqldTestAgentSunHtmlAdaptor

public class MysqldTestAgentSunHtmlAdaptor
extends java.lang.Object

This Simple JMX Agent is useful for testing. This JMX Agent requires the Sun specific tools which come with Sun's JMX Reference Implementation in the "jmxtools.jar" file. If Sun's "jmxtools.jar" is not available (or more specifically com.sun.jdmk.comm.HtmlAdaptorServer then deploying to a JMX Agent is required. (I use JBoss --Eric) This Agent has exactly two beans: 1) a MysqldDynamicMBean 2) a Broswer Interface for management

Version:
$Id: MysqldTestAgentSunHtmlAdaptor.java,v 1.1 2005/02/16 21:46:11 eherman Exp $
Author:
Eric Herman

Constructor Summary
MysqldTestAgentSunHtmlAdaptor(int port, java.lang.String name)
          creates the MBean server and adds the Mysqld & Browser Beans
 
Method Summary
 void addBrowser(int port)
          Creates and adds a Browser Interface for management
static void main(java.lang.String[] args)
          starts an MBean server with: 1) a MySQL bean 2) a Browser interface on port 90902
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MysqldTestAgentSunHtmlAdaptor

public MysqldTestAgentSunHtmlAdaptor(int port,
                                     java.lang.String name)
                              throws javax.management.JMException
creates the MBean server and adds the Mysqld & Browser Beans

Throws:
javax.management.JMException
Method Detail

addBrowser

public final void addBrowser(int port)
                      throws javax.management.JMException
Creates and adds a Browser Interface for management

Throws:
javax.management.JMException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
starts an MBean server with: 1) a MySQL bean 2) a Browser interface on port 90902

Throws:
java.lang.Exception


Copyright © 2004-2011. All Rights Reserved.