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.
|
static String |
possibleModifyRange(String range,
String[] dataSources,
Character defaultRange) |
String |
retrieveStats(String mbeanName,
String range,
String[] dataSources,
String function) |
static String |
rrdContent(byte[] rrd4j,
String newRange,
String[] dataSources,
String function) |
static long |
secondsInZone(char zone) |
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 static String possibleModifyRange(String range, String[] dataSources, Character defaultRange)
public static String rrdContent(byte[] rrd4j, String newRange, String[] dataSources, String function) throws IOException
IOException
public 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 operationpublic String retrieveStats(String mbeanName, String range, String[] dataSources, String function)
public static long secondsInZone(char zone)
@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