|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.on.common.jbossas.JmxConnectionHelper
public class JmxConnectionHelper
Shared helper class to connect to a remote JMX server.
| Field Summary | |
|---|---|
static String |
CONNECTOR_ADDRESS
|
static String |
CONNECTOR_CREDENTIALS
|
static String |
CONNECTOR_DESCRIPTOR_TYPE
|
static String |
CONNECTOR_PRINCIPAL
|
static String |
JBOSS_HOME_DIR
|
| Constructor Summary | |
|---|---|
JmxConnectionHelper(boolean copyConnectionLibraries,
File tmpDir)
Constructs a new connection helper. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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 libraries| Method Detail |
|---|
public org.mc4j.ems.connection.EmsConnection getEmsConnection(org.rhq.core.domain.configuration.Configuration config)
config - Configuration properties for this connection
getEmsConnection()public org.mc4j.ems.connection.EmsConnection getEmsConnection()
getEmsConnection(Configuration)
getEmsConnection(org.rhq.core.domain.configuration.Configuration)public void closeConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||