Java MBean invokeStopOperation(ObjectName name, MBeanServer server)

Here you can find the source of invokeStopOperation(ObjectName name, MBeanServer server)

Description

Invokes the stop() method of an MBean.

License

LGPL

Declaration

public static void invokeStopOperation(ObjectName name,
        MBeanServer server) throws JMException 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import javax.management.MBeanServer;
import javax.management.ObjectName;

import javax.management.JMException;

public class Main {
    public static final String STOP_OPERATION_NAME = "stop";

    /**/*w ww  .  j  a va2s.  c om*/
     * Invokes the <code>stop()</code> method of an MBean.
     */
    public static void invokeStopOperation(ObjectName name,
            MBeanServer server) throws JMException {
        server.invoke(name, STOP_OPERATION_NAME, null, null);
    }
}

Related

  1. getServerId(MBeanServer server)
  2. infoArrayEquals(MBeanParameterInfo[] a, MBeanParameterInfo[] a2)
  3. infoEquals(MBeanInfo one, MBeanInfo two)
  4. invoke(Logger logger, MBeanServer mbeanServer, ObjectName mbeanName, String methodName, Object... arguments)
  5. invoke(MBeanServer mbs, ObjectName name, String operationName, Object params[], String signature[])
  6. isRegistered(MBeanServer mbs, ObjectName objectName)
  7. isServerStarted(MBeanServerConnection server)
  8. listMBeans(MBeanServerConnection mbsc, String objectNameStr)
  9. makeMBeanName(@Nonnull final String domain, @Nonnull final String type, @Nonnull final String channelName)