org.opennms.netmgt.provision.detector.jmx.client
Class JMXClient

java.lang.Object
  extended by org.opennms.netmgt.provision.detector.jmx.client.JMXClient
All Implemented Interfaces:
Client<ConnectionWrapper,Integer>
Direct Known Subclasses:
JBossClient, Jsr160Client

public abstract class JMXClient
extends Object
implements Client<ConnectionWrapper,Integer>

Author:
Donald Desloge

Constructor Summary
JMXClient()
           
 
Method Summary
 void close()
           
 void connect(InetAddress address, int port, int timeout)
           
protected abstract  Map<String,Object> generateMap(int port, int timeout)
           
protected abstract  ConnectionWrapper getMBeanServerConnection(Map<String,Object> parameterMap, InetAddress address)
           
 Integer receiveBanner()
           
 Integer sendRequest(ConnectionWrapper request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXClient

public JMXClient()
Method Detail

close

public void close()
Specified by:
close in interface Client<ConnectionWrapper,Integer>

getMBeanServerConnection

protected abstract ConnectionWrapper getMBeanServerConnection(Map<String,Object> parameterMap,
                                                              InetAddress address)

generateMap

protected abstract Map<String,Object> generateMap(int port,
                                                  int timeout)

connect

public void connect(InetAddress address,
                    int port,
                    int timeout)
             throws IOException,
                    Exception
Specified by:
connect in interface Client<ConnectionWrapper,Integer>
Throws:
IOException
Exception

receiveBanner

public Integer receiveBanner()
                      throws IOException,
                             Exception
Specified by:
receiveBanner in interface Client<ConnectionWrapper,Integer>
Throws:
IOException
Exception

sendRequest

public Integer sendRequest(ConnectionWrapper request)
                    throws IOException,
                           Exception
Specified by:
sendRequest in interface Client<ConnectionWrapper,Integer>
Throws:
IOException
Exception


Copyright © 2009. All Rights Reserved.