| java.lang.Object com.sun.esb.management.client.ManagementClientFactory
ManagementClientFactory | public class ManagementClientFactory (Code) | | This class is a factory class to create a ManagementClient object.
author: graj |
Method Summary | |
static Exception | createManagementException(String bundleKey, String[] args, Exception sourceException) | protected static I18NBundle | getI18NBundle() | public static ManagementClient | getInstance(String hostName, int portNumber, String userName, String password, ConnectionType connectionType) | public static ManagementClient | getInstance(String url, String userName, String password, boolean isRemoteConnection) | public static ManagementClient | getInstance(String hostName, int portNumber, String userName, String password) Creates a new instance of ManagementClient object First tries to
establish a HTTP connection. | public static ManagementClient | getInstance(MBeanServerConnection connection) | public static ManagementClient | getInstance(MBeanServerConnection connection, boolean isRemoteConnection) | protected MBeanServerConnection | getMBeanServerConnection(String urlString, String userName, String password) This method returns the MBeanServerConnection to used to invoke the MBean
methods via HTTP connector. | protected MBeanServerConnection | getMBeanServerConnection(String hostName, int portNumber, String userName, String password, ConnectionType type) This method returns the MBeanServerConnection to used to invoke the MBean
methods via HTPP connector.
Parameters: hostName - -the hostName part of the URL. | public static void | main(String[] args) |
createManagementException | static Exception createManagementException(String bundleKey, String[] args, Exception sourceException)(Code) | | Creates a management message string and populates the exception
Parameters: bundleKey - Parameters: args - of Strings Parameters: sourceException - -the source exception to propagate Exception object created with a valid XML Management Message |
getI18NBundle | protected static I18NBundle getI18NBundle()(Code) | | gives the I18N bundle
I18NBundle object |
getInstance | public static ManagementClient getInstance(String hostName, int portNumber, String userName, String password) throws ManagementRemoteException(Code) | | Creates a new instance of ManagementClient object First tries to
establish a HTTP connection. If that fails, tries to establish a HTTPS
connection, and if that fails tries to establish a JRMP Connection.
Parameters: hostName - Parameters: portNumber - Parameters: userName - Parameters: password - ManagementClient object throws: ManagementRemoteException - |
getMBeanServerConnection | protected MBeanServerConnection getMBeanServerConnection(String hostName, int portNumber, String userName, String password, ConnectionType type) throws ManagementRemoteException(Code) | | This method returns the MBeanServerConnection to used to invoke the MBean
methods via HTPP connector.
Parameters: hostName - -the hostName part of the URL. If null, defaults to the localhostName name, as determined byInetAddress.getLocalHost().getHostName(). If it is a numericIPv6 address, it can optionally be enclosed in square brackets[]. MBeanServerConnection throws: ManagementRemoteException - |
main | public static void main(String[] args)(Code) | | Parameters: args - |
|
|