org.opennms.netmgt.provision.detector.jmx.client
Class JMXClient
java.lang.Object
org.opennms.netmgt.provision.detector.jmx.client.JMXClient
- All Implemented Interfaces:
- Client<ConnectionWrapper,Integer>
- Direct Known Subclasses:
- Jsr160Client
public abstract class JMXClient
- extends Object
- implements Client<ConnectionWrapper,Integer>
- Author:
- Donald Desloge
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMXClient
public JMXClient()
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.