Here you can find the source of getAttribute(MBeanServerConnection connection, ObjectName objectName, String attribute)
@SuppressWarnings("unchecked") public static <T> T getAttribute(MBeanServerConnection connection, ObjectName objectName, String attribute) throws Exception
//package com.java2s; //License from project: Open Source License import javax.management.MBeanServerConnection; import javax.management.ObjectName; public class Main { @SuppressWarnings("unchecked") public static <T> T getAttribute(MBeanServerConnection connection, ObjectName objectName, String attribute) throws Exception { return (T) connection.getAttribute(objectName, attribute); }/* w w w.jav a 2 s. co m*/ }