org.opennms.netmgt.provision.support.jmx.connectors
Class Jsr160ConnectionWrapper

java.lang.Object
  extended by org.opennms.netmgt.provision.support.jmx.connectors.Jsr160ConnectionWrapper
All Implemented Interfaces:
ConnectionWrapper

public class Jsr160ConnectionWrapper
extends Object
implements ConnectionWrapper

This class manages the connection to the remote jmx server. The Jsr160ConnectionFactory class creates the connection and the close method closes it.

Author:
Mike Jamison

Constructor Summary
Jsr160ConnectionWrapper(JMXConnector connector, MBeanServerConnection connection)
          Constructor for Jsr160ConnectionWrapper.
 
Method Summary
 void close()
          close
 MBeanServerConnection getMBeanServer()
          getMBeanServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jsr160ConnectionWrapper

public Jsr160ConnectionWrapper(JMXConnector connector,
                               MBeanServerConnection connection)

Constructor for Jsr160ConnectionWrapper.

Parameters:
connector - a JMXConnector object.
connection - a MBeanServerConnection object.
Method Detail

getMBeanServer

public MBeanServerConnection getMBeanServer()

getMBeanServer

Specified by:
getMBeanServer in interface ConnectionWrapper
Returns:
Returns the connection.

close

public void close()

close

Specified by:
close in interface ConnectionWrapper


Copyright © 2011. All Rights Reserved.