org.objectweb.cjdbc.controller.jmx
Class JmxClient

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.jmx.JmxClient
Direct Known Subclasses:
ControllerJmxClient, VirtualDatabaseJmxClient

public abstract class JmxClient
extends java.lang.Object

This class is responsible for connecting to the JRMP adaptor of the MBean server via the JRMP connector provided by mx4j.It is used to connect to the JmxAgent or to any of its subclasses.

Version:
1.0
Author:
Nicolas Modrzyk

Field Summary
protected  java.lang.String remoteHostAddress
           
protected  java.lang.String remoteHostName
           
protected  mx4j.connector.RemoteMBeanServer server
           
 
Constructor Summary
JmxClient()
           
 
Method Summary
 void connect(java.lang.String host, java.lang.String port)
          Find the naming service and connect tor the JmxAgent on the controller side.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

protected mx4j.connector.RemoteMBeanServer server

remoteHostName

protected java.lang.String remoteHostName

remoteHostAddress

protected java.lang.String remoteHostAddress
Constructor Detail

JmxClient

public JmxClient()
Method Detail

connect

public void connect(java.lang.String host,
                    java.lang.String port)
             throws JmxException
Find the naming service and connect tor the JmxAgent on the controller side.

Parameters:
host - the host where the controller is running
port - on which the rmi has been set up
Throws:
JmxException - if fails


Copyright © 2002, 2003 - ObjectWeb Consortium - All Rights Reserved.