public interface JMXConnectorSource
| Modifier and Type | Method and Description |
|---|---|
JMXConnector |
getJMXConnector(boolean forceNew,
Map environment)
If the connection has already been created, return the existing
JMXConnector unless 'forceNew' is true or the connection is currently null.
|
void |
setCredentials(String username,
String password) |
void |
setHostAndPort(String host,
int port)
If the JMX Connector Server's host and port cannot be identified from the
JMX Service URL or if the JMXServiceURL is not set, then this is the process
of indicating this information.
|
void |
setIsSecure(boolean secureFlag) |
void |
setJMXServiceURL(JMXServiceURL jmxServiceURL)
If the JMXServiceURL is setup using this method, the host, protocol and port
set independently are overridden.
|
void |
setTrustStore(File truststore,
String type,
char[] passwd) |
void setCredentials(String username, String password)
username - is the username to be used for the Connection.password - is the user password.void setIsSecure(boolean secureFlag)
secureFlag - indicates whether the connection is to be secured (ex. use SSL)void setTrustStore(File truststore, String type, char[] passwd)
truststore - path to the JKS truststore file.type - is the type of the Keystore ( JKS, JCEKS etc)passwd - - the truststore passwordvoid setJMXServiceURL(JMXServiceURL jmxServiceURL)
jmxServiceURL - - JMX Service URLvoid setHostAndPort(String host, int port)
host - - hostnameport - - portJMXConnector getJMXConnector(boolean forceNew, Map environment) throws IOException
forceNew - - create a new connectionenvironment - - a set of attributes to determine how the connection is made.
This parameter can be null. Keys in this map must be Strings. The appropriate type
of each associated value depends on the attribute. The contents of environment are
not changed by this callIOException - if a connection cannot be established.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.