org.rhq.plugins.jmx.util
Class ConnectionProviderFactory

java.lang.Object
  extended by org.rhq.plugins.jmx.util.ConnectionProviderFactory

public class ConnectionProviderFactory
extends Object

A factory that can construct an EMS ConnectionProvider for a JMX Server Resource from that Resource's plugin configuration.

Author:
Ian Springer

Constructor Summary
ConnectionProviderFactory()
           
 
Method Summary
static org.mc4j.ems.connection.support.ConnectionProvider createConnectionProvider(org.rhq.core.domain.configuration.Configuration pluginConfig, ProcessInfo process, File tempDir)
           
static List<File> getAdditionalJarsFromConfig(org.rhq.core.domain.configuration.Configuration pluginConfiguration)
          Examines the plugin configuration and if it defines additional classpath entries, this will return a list of files that point to all the jars that need to be added to a classloader to support the managed JMX resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionProviderFactory

public ConnectionProviderFactory()
Method Detail

createConnectionProvider

public static org.mc4j.ems.connection.support.ConnectionProvider createConnectionProvider(org.rhq.core.domain.configuration.Configuration pluginConfig,
                                                                                          ProcessInfo process,
                                                                                          File tempDir)
                                                                                   throws Exception
Throws:
Exception

getAdditionalJarsFromConfig

public static List<File> getAdditionalJarsFromConfig(org.rhq.core.domain.configuration.Configuration pluginConfiguration)
Examines the plugin configuration and if it defines additional classpath entries, this will return a list of files that point to all the jars that need to be added to a classloader to support the managed JMX resource. Note: this is package static scoped so the resource component can use this method.

Parameters:
pluginConfiguration -
Returns:
list of files pointing to additional jars; will be empty if no additional jars are to be added


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.