public final class MBeanInfoViewer extends Object
Constructor and Description |
---|
MBeanInfoViewer(Authentication auth,
String user,
Credentials creds)
Creates a new instance of MBeanInfoViewer.
|
Modifier and Type | Method and Description |
---|---|
String |
getInfo(String mbeanNameAsString)
Deprecated.
|
Map<String,String> |
getMappedInfo(String mbeanNameAsString)
Return the informations about the Scheduler MBean as a Map.
|
void |
invoke(String mbeanNameAsString,
String operationName,
Object[] params)
Invokes an operation on an MBean.
|
void |
setAttribute(String mbeanNameAsString,
String attributeName,
Object value)
Sets the value of a specific attribute of a named MBean.
|
public MBeanInfoViewer(Authentication auth, String user, Credentials creds)
auth
- the authentication interfaceuser
- the user that wants to connect to the JMX infrastructurecreds
- the credentials of the userpublic void setAttribute(String mbeanNameAsString, String attributeName, Object value)
mbeanNameAsString
- the object name of the MBeanattributeName
- the name of the attributevalue
- the new value of the attributepublic void invoke(String mbeanNameAsString, String operationName, Object[] params)
mbeanNameAsString
- the object name of the MBeanoperationName
- the name of the operation to invokeparams
- the array of parameters of the operation@Deprecated public String getInfo(String mbeanNameAsString)
mbeanNameAsString
- the object name of the MBeanpublic Map<String,String> getMappedInfo(String mbeanNameAsString)
mbeanNameAsString
- the object name of the MBean