org.ow2.jasmine.probe.jmxconnection.simple
Class JmxConnectionServiceImpl

java.lang.Object
  extended by org.ow2.jasmine.probe.jmxconnection.simple.JmxConnectionServiceImpl
All Implemented Interfaces:
JmxConnectionService

public class JmxConnectionServiceImpl
extends Object
implements JmxConnectionService

Simple (non pooled) implementation of the JmxConnectionService.

Author:
danesa

Field Summary
static String PROP_PASSWORD
          Name of the property giving jmx connection password
static String PROP_PROTOCOL_PROVIDER_PACKAGES
          Name of the property giving the provider pacakges
static String PROP_USER
          Name of the property giving jmx connection user
 
Constructor Summary
JmxConnectionServiceImpl()
           
 
Method Summary
 JmxConnectionFactory getJmxConnectionFactory(String url, Map<String,String> props)
          Get the JmxConnectionFactory for these parameters.
 void removeJmxConnectionFactory(String targetUrl)
          Remove the JmxConnectionFactory corresponding to the given url
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_USER

public static final String PROP_USER
Name of the property giving jmx connection user

See Also:
Constant Field Values

PROP_PASSWORD

public static final String PROP_PASSWORD
Name of the property giving jmx connection password

See Also:
Constant Field Values

PROP_PROTOCOL_PROVIDER_PACKAGES

public static final String PROP_PROTOCOL_PROVIDER_PACKAGES
Name of the property giving the provider pacakges

See Also:
Constant Field Values
Constructor Detail

JmxConnectionServiceImpl

public JmxConnectionServiceImpl()
Method Detail

start

public void start()

stop

public void stop()

getJmxConnectionFactory

public JmxConnectionFactory getJmxConnectionFactory(String url,
                                                    Map<String,String> props)
                                             throws JmxConnectionException
Get the JmxConnectionFactory for these parameters.

Specified by:
getJmxConnectionFactory in interface JmxConnectionService
Parameters:
url - jmx url for the target
props - properties for connector creation
Throws:
JmxConnectionException - Thrown if connector could not be created, contains the cause.

removeJmxConnectionFactory

public void removeJmxConnectionFactory(String targetUrl)
Remove the JmxConnectionFactory corresponding to the given url

Specified by:
removeJmxConnectionFactory in interface JmxConnectionService
Parameters:
targetUrl - jmx url


Copyright © 2013 OW2 Consortium. All Rights Reserved.