public class JmxConnectionHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTOR_ADDRESS |
static String |
CONNECTOR_CREDENTIALS |
static String |
CONNECTOR_DESCRIPTOR_TYPE |
static String |
CONNECTOR_PRINCIPAL |
static String |
JBOSS_HOME_DIR |
| Constructor and Description |
|---|
JmxConnectionHelper(boolean copyConnectionLibraries,
File tmpDir)
Constructs a new connection helper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection()
If necessary attempt to close the EMS connection, then set this.connection null.
|
org.mc4j.ems.connection.EmsConnection |
getEmsConnection()
Obtain an EmsConnection.
|
org.mc4j.ems.connection.EmsConnection |
getEmsConnection(org.rhq.core.domain.configuration.Configuration config)
Obtain an EmsConnection for the passed connection properties.
|
public static final String CONNECTOR_DESCRIPTOR_TYPE
public static final String CONNECTOR_ADDRESS
public static final String CONNECTOR_PRINCIPAL
public static final String CONNECTOR_CREDENTIALS
public static final String JBOSS_HOME_DIR
public JmxConnectionHelper(boolean copyConnectionLibraries,
File tmpDir)
copyConnectionLibraries - whether to copy the libraries need for the connection so that
the ems classloader doesn't block the application access to them.tmpDir - the temporary directory to use when copying the librariespublic org.mc4j.ems.connection.EmsConnection getEmsConnection(org.rhq.core.domain.configuration.Configuration config)
config - Configuration properties for this connectiongetEmsConnection()public org.mc4j.ems.connection.EmsConnection getEmsConnection()
getEmsConnection(Configuration)getEmsConnection(org.rhq.core.domain.configuration.Configuration)public void closeConnection()
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.