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_DOMAIN
          Name of the property giving the managed server's domain
static java.lang.String PROP_MBEAN
          Name of the property giving the MBean's OBJECT_NAME
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_SERVER
          Name of the property giving the managed server's name
static java.lang.String PROP_TARGET
          Name of the property giving the target
static java.lang.String PROP_URL
          Name of the property giving the managed server's URL
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

PROP_TARGET

public static final java.lang.String PROP_TARGET
Name of the property giving the target

See Also:
Constant Field Values

PROP_SERVER

public static final java.lang.String PROP_SERVER
Name of the property giving the managed server's name

See Also:
Constant Field Values

PROP_DOMAIN

public static final java.lang.String PROP_DOMAIN
Name of the property giving the managed server's domain

See Also:
Constant Field Values

PROP_URL

public static final java.lang.String PROP_URL
Name of the property giving the managed server's URL

See Also:
Constant Field Values

PROP_MBEAN

public static final java.lang.String PROP_MBEAN
Name of the property giving the MBean's OBJECT_NAME

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
env - properties for connector creation
Throws:
JmxConnectionException - Thrown if connector could not be created, contains the cause.


Copyright © 2011 OW2 Consortium. All Rights Reserved.