@Deprecated
public final class Helper
extends java.lang.Object
A utility class that simplifies acquiring the MBeanHome object for either the entire adminstrative domain or for a particular managed server.
The URL that is specified is used to acquire the JNDI InitialContext from which the MBeanHome will be acquired.
MBeanHome
Constructor and Description |
---|
Helper()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static MBeanHome |
getAdminMBeanHome(java.lang.String user,
java.lang.String password,
java.lang.String adminServerURL)
Deprecated.
Returns the MBeanHome for the entire administrative domain.
|
static MBeanHome |
getMBeanHome(java.lang.String user,
java.lang.String password,
java.lang.String serverURL,
java.lang.String serverName)
Deprecated.
Returns the regular MBeanHome of the server specified.
|
private static MBeanHome |
getMBeanHomeForName(java.lang.String user,
java.lang.String password,
java.lang.String url,
java.lang.String jndiName)
Deprecated.
looks up the MBeanHome interface for the specified JNDI name.
|
public static final MBeanHome getAdminMBeanHome(java.lang.String user, java.lang.String password, java.lang.String adminServerURL) throws java.lang.IllegalArgumentException
user
- the id for a user which has authorization to find the
MBeanHome on the admin serverpassword
- for the specified useradminServerURL
- The URL used to acquire the InitialContextjava.lang.IllegalArgumentException
- if any of the arguments are null or invalidpublic static final MBeanHome getMBeanHome(java.lang.String user, java.lang.String password, java.lang.String serverURL, java.lang.String serverName) throws java.lang.IllegalArgumentException
user
- the id for a user which has authorization to find the
MBeanHome on the admin serverpassword
- for the specified user.serverName
- name of the target server as defined in the domain
configuration.serverURL
- the URL used to acquire the InitialContext. The URL
must either be that of the Adminstration server or the managed
server that is specified in the serverNamejava.lang.IllegalArgumentException
- if any of the arguments are null or invalidprivate static MBeanHome getMBeanHomeForName(java.lang.String user, java.lang.String password, java.lang.String url, java.lang.String jndiName) throws java.lang.IllegalArgumentException
user
- he id for a user which has authorization to find the
MBeanHome on the admin serverpassword
- for the specified userurl
- the URL used to acquire the InitialContext. The URL
must either be that of the Adminstration server or the managed
server that is specified in the serverNamejndiName
- the name under which the MBeanHome is registered.java.lang.IllegalArgumentException
- if any of the arguments are null or invalid