Java MBean createTimerMBean(ObjectName name, MBeanServer server)

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

Description

create Timer M Bean

License

LGPL

Declaration

public static ObjectInstance createTimerMBean(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.ObjectInstance;
import javax.management.JMException;

public class Main {
    private static final String TIMER_MBEAN_CLASSNAME = "javax.management.timer.Timer";

    public static ObjectInstance createTimerMBean(ObjectName name,
            MBeanServer server) throws JMException {
        return server.createMBean(TIMER_MBEAN_CLASSNAME, name, null, null);
    }/*w  ww  . jav a  2s  .  co m*/
}

Related

  1. convertToOpenMBeanAttribute(final MBeanAttributeInfo in, final String prefix)
  2. convertToOpenMBeanOperation(MBeanOperationInfo in)
  3. createMBeanServer()
  4. createOpenMBeanAttributeInfo(final OpenType type, final MBeanAttributeInfo in, final String prefix)
  5. createProxy(final ObjectName objectName, final Class mbeanInterface, final MBeanServer mbeanServer)
  6. dumpAttributes(MBeanAttributeInfo[] attributes)
  7. dumpConstructors(MBeanConstructorInfo[] constructors)
  8. dumpOperations(MBeanOperationInfo[] operations)
  9. findAttribute(MBeanAttributeInfo[] attributes, String name)