public class AppSrvJMXConnectorSource extends Object implements JMXConnectorSource
| Constructor and Description |
|---|
AppSrvJMXConnectorSource()
Ctor.
|
| 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)
This operation is not supported by this implementation of the Connector source and
is a no-op.
|
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)
This operation is not supported by this implementation of the Connector source
and is a no-op.
|
public void setCredentials(String username, String password)
setCredentials in interface JMXConnectorSourceusername - is the username to be used for the Connection.password - is the user password.public void setIsSecure(boolean secureFlag)
setIsSecure in interface JMXConnectorSourcesecureFlag - indicates whether the connection is to be secured (ex. use SSL)public void setTrustStore(File truststore, String type, char[] passwd)
setTrustStore in interface JMXConnectorSourcetruststore - path to the JKS truststore file.type - is the type of the Keystore ( JKS, JCEKS etc)passwd - - the truststore passwordpublic void setJMXServiceURL(JMXServiceURL jmxServiceURL)
JMXConnectorSourcesetJMXServiceURL in interface JMXConnectorSourcejmxServiceURL - - JMX Service URLpublic void setHostAndPort(String host, int port)
setHostAndPort in interface JMXConnectorSourcehost - - hostnameport - - portpublic JMXConnector getJMXConnector(boolean forceNew, Map environment) throws IOException
getJMXConnector in interface JMXConnectorSourceforceNew - - 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.