| com.sun.jbi.util.jmx.JMXConnectorSource
All known Subclasses: com.sun.jbi.util.jmx.AppSrvJMXConnectorSource, com.sun.jbi.util.jmx.JMXConnectorSourceImpl,
JMXConnectorSource | public interface JMXConnectorSource (Code) | | This interface is to be used by jbi components / services to get a JMX Client
Connector. This is a wrapper around the JMXConnectorFactory and allows one to connect
to a Connector Server, which may have proprietary extensions for Security. The
corresponding client Connector Source would be made available through this interface.
author: Sun Microsystems, Inc. |
Method Summary | |
javax.management.remote.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.
Parameters: forceNew - - create a new connection Parameters: environment - - a set of attributes to determine how the connection is made. | 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) Parameters: secureFlag - indicates whether the connection is to be secured (ex. | void | setJMXServiceURL(javax.management.remote.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) |
getJMXConnector | javax.management.remote.JMXConnector getJMXConnector(boolean forceNew, Map environment) throws java.io.IOException(Code) | | If the connection has already been created, return the existing
JMXConnector unless 'forceNew' is true or the connection is currently null.
Parameters: forceNew - - create a new connection Parameters: environment - - 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 call the JMX Connector. throws: java.io.IOException - if a connection cannot be established. |
setCredentials | void setCredentials(String username, String password)(Code) | | Parameters: username - is the username to be used for the Connection. Parameters: password - is the user password. |
setHostAndPort | void setHostAndPort(String host, int port)(Code) | | 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.
Parameters: host - - hostname Parameters: port - - port |
setIsSecure | void setIsSecure(boolean secureFlag)(Code) | | Parameters: secureFlag - indicates whether the connection is to be secured (ex. use SSL) |
setJMXServiceURL | void setJMXServiceURL(javax.management.remote.JMXServiceURL jmxServiceURL)(Code) | | If the JMXServiceURL is setup using this method, the host, protocol and port
set independently are overridden.
Parameters: jmxServiceURL - - JMX Service URL |
setTrustStore | void setTrustStore(File truststore, String type, char[] passwd)(Code) | | Parameters: truststore - path to the JKS truststore file. Parameters: type - is the type of the Keystore ( JKS, JCEKS etc) Parameters: passwd - - the truststore password |
|
|