| java.lang.Object com.sun.jbi.ui.client.JBIAdminCommandsClientFactory
JBIAdminCommandsClientFactory | public class JBIAdminCommandsClientFactory (Code) | | This class is a factory class to create a JBIAdminCommands object.
author: graj |
Method Summary | |
static Exception | createManagementException(String bundleKey, String[] args, Exception sourceException) | protected static I18NBundle | getI18NBundle() | public static JBIAdminCommands | getInstance(String hostName, int portNumber, String userName, String password, ConnectionType connectionType) | public static JBIAdminCommands | getInstance(String url, String userName, String password, boolean isRemoteConnection) | public static JBIAdminCommands | getInstance(String hostName, int portNumber, String userName, String password) Creates a new instance of JBIAdminCommands object First tries to
establish a HTTP connection. | public static JBIAdminCommands | getInstance(MBeanServerConnection connection) | public static JBIAdminCommands | 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 JBIAdminCommands getInstance(String url, String userName, String password, boolean isRemoteConnection) throws JBIRemoteException(Code) | | Creates a new instance of JBIAdminCommands object
Parameters: url - Parameters: userName - Parameters: password - Parameters: isRemoteConnection - -true if remote, false if local JBIAdminCommands object throws: JBIRemoteException - |
getInstance | public static JBIAdminCommands getInstance(String hostName, int portNumber, String userName, String password) throws JBIRemoteException(Code) | | Creates a new instance of JBIAdminCommands 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 - JBIAdminCommands object throws: JBIRemoteException - |
getMBeanServerConnection | protected MBeanServerConnection getMBeanServerConnection(String hostName, int portNumber, String userName, String password, ConnectionType type) throws JBIRemoteException(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: JBIRemoteException - |
main | public static void main(String[] args)(Code) | | Parameters: args - |
|
|