| java.lang.Object com.sun.jbi.util.jmx.JMXConnectorSourceImpl
JMXConnectorSourceImpl | public class JMXConnectorSourceImpl implements JMXConnectorSource(Code) | | This class 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 | |
public 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. | public void | setCredentials(String username, String password) | public 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. | public void | setIsSecure(boolean secureFlag) This operation is not supported by this implementation of the Connector source and
is a no-op.
Parameters: secureFlag - indicates whether the connection is to be secured (ex. | public void | setJMXServiceURL(JMXServiceURL jmxServiceURL) | public 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. |
JMXConnectorSourceImpl | public JMXConnectorSourceImpl()(Code) | | Ctor.
|
getJMXConnector | public 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 | public 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 | public 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. This is a no-op in this implementation.
Parameters: host - - hostname Parameters: port - - port |
setIsSecure | public void setIsSecure(boolean secureFlag)(Code) | | This operation is not supported by this implementation of the Connector source and
is a no-op.
Parameters: secureFlag - indicates whether the connection is to be secured (ex. use SSL) |
setJMXServiceURL | public void setJMXServiceURL(JMXServiceURL jmxServiceURL)(Code) | | Parameters: jmxServiceURL - - JMX Service URL |
setTrustStore | public void setTrustStore(File truststore, String type, char[] passwd)(Code) | | This operation is not supported by this implementation of the Connector source
and is a no-op.
Parameters: truststore - path to the JKS truststore file. Parameters: type - is the type of the Keystore ( JKS, JCEKS etc) Parameters: passwd - - the truststore password |
|
|