public class ManagementClientFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
protected static I18NBundle |
getI18NBundle()
gives the I18N bundle
|
static ManagementClient |
getInstance(MBeanServerConnection connection)
Creates a new instance of ManagementClient object for a remote connection
|
static ManagementClient |
getInstance(MBeanServerConnection connection,
boolean isRemoteConnection)
Creates a new instance of ManagementClient object
|
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.
|
static ManagementClient |
getInstance(String hostName,
int portNumber,
String userName,
String password,
ConnectionType connectionType)
Creates a new instance of ManagementClient object
|
static ManagementClient |
getInstance(String url,
String userName,
String password,
boolean isRemoteConnection)
Creates a new instance of ManagementClient object
|
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.
|
protected MBeanServerConnection |
getMBeanServerConnection(String urlString,
String userName,
String password)
This method returns the MBeanServerConnection to used to invoke the MBean
methods via HTTP connector.
|
static void |
main(String[] args) |
protected static I18NBundle getI18NBundle()
public static ManagementClient getInstance(String hostName, int portNumber, String userName, String password, ConnectionType connectionType) throws ManagementRemoteException
hostName - portNumber - userName - password - connectionType - ManagementRemoteExceptionpublic static ManagementClient getInstance(String url, String userName, String password, boolean isRemoteConnection) throws ManagementRemoteException
url - userName - password - isRemoteConnection - -
true if remote, false if localManagementRemoteExceptionpublic static ManagementClient getInstance(String hostName, int portNumber, String userName, String password) throws ManagementRemoteException
hostName - portNumber - userName - password - ManagementRemoteExceptionpublic static ManagementClient getInstance(MBeanServerConnection connection) throws ManagementRemoteException
connection - ManagementRemoteExceptionpublic static ManagementClient getInstance(MBeanServerConnection connection, boolean isRemoteConnection) throws ManagementRemoteException
connection - isRemoteConnection - -
true if remote, false if localManagementRemoteExceptionprotected MBeanServerConnection getMBeanServerConnection(String urlString, String userName, String password) throws ManagementRemoteException
url - -
service:jmx:rmi:///jndi/rmi://ManagementRemoteExceptionprotected MBeanServerConnection getMBeanServerConnection(String hostName, int portNumber, String userName, String password, ConnectionType type) throws ManagementRemoteException
hostName - -
the hostName part of the URL. If null, defaults to the local
hostName name, as determined by
InetAddress.getLocalHost().getHostName(). If it is a numeric
IPv6 address, it can optionally be enclosed in square brackets
[].ManagementRemoteExceptionpublic static void main(String[] args)
args - Copyright © 2011-2016 OpenESB Community. All Rights Reserved.