Here you can find the source of invoke(ObjectName objectName, Object[] params, String[] signature, String operationName)
public static Object invoke(ObjectName objectName, Object[] params, String[] signature, String operationName) throws InstanceNotFoundException, MBeanException, ReflectionException
//package com.java2s; //License from project: Apache License import javax.management.InstanceNotFoundException; import javax.management.MBeanException; import javax.management.MBeanServer; import javax.management.ObjectName; import javax.management.ReflectionException; import java.lang.management.ManagementFactory; public class Main { private static final MBeanServer platformMBeanServer = ManagementFactory.getPlatformMBeanServer(); public static Object invoke(ObjectName objectName, Object[] params, String[] signature, String operationName) throws InstanceNotFoundException, MBeanException, ReflectionException { Object result = platformMBeanServer.invoke(objectName, operationName, params, signature); return result; }// www. j av a2 s. co m }