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 java.lang.Object
implements JmxConnectionService

Simple (non pooled) implementation of the JmxConnectionService.

Author:
danesa

Field Summary
static java.lang.String PROP_PASSWORD
          Name of the property giving jmx connection password
static java.lang.String PROP_PROTOCOL_PROVIDER_PACKAGES
          Name of the property giving the provider pacakges
static java.lang.String PROP_USER
          Name of the property giving jmx connection user
 
Constructor Summary
JmxConnectionServiceImpl()
           
 
Method Summary
 JmxConnectionFactory getJmxConnectionFactory(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> props)
          Get the JmxConnectionFactory for these parameters.
 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 java.lang.String PROP_USER
Name of the property giving jmx connection user

See Also:
Constant Field Values

PROP_PASSWORD

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

See Also:
Constant Field Values

PROP_PROTOCOL_PROVIDER_PACKAGES

public static final java.lang.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(java.lang.String url,
                                                    java.util.Map<java.lang.String,java.lang.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.


Copyright © 2011 OW2 Consortium. All Rights Reserved.