Java Method Call invoke(ObjectName objectName, Object[] params, String[] signature, String operationName)

Here you can find the source of invoke(ObjectName objectName, Object[] params, String[] signature, String operationName)

Description

invoke

License

Apache License

Declaration

public static Object invoke(ObjectName objectName, Object[] params, String[] signature, String operationName)
            throws InstanceNotFoundException, MBeanException, ReflectionException 

Method Source Code


//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
}

Related

  1. invoke(Object target, String methodName, Object[] args)
  2. invoke(Object target, String name, Class[] params, Object[] args)
  3. invoke(Object targetObject, String method, Class[] paramTypes, Object[] paramValues)
  4. invoke(Object targetObject, String methodName, Object... params)
  5. invoke(Object thisObject, Method method)
  6. invoke(ObjectName objectName, String attribute, Object[] params, String[] signatur)
  7. invoke(Optional method, Class clazz, Object... args)
  8. invoke(String className, String methodName, Class[] paramTypes, Object... params)
  9. invoke(String cls_name, String method, Class[] param_cls, Object cls, Object[] params)