Class MBeanService

java.lang.Object
com.github.fungal.api.util.MBeanService

public class MBeanService extends Object
A MBean service helper class which can register any POJO object against an MBeanServer with using the ObjectName specified. This service supports the lifecycle of the Fungal kernel
  • Constructor Details

    • MBeanService

      public MBeanService()
      Constructor
  • Method Details

    • setMBeanServer

      public void setMBeanServer(MBeanServer v)
      Set the MBean server
      Parameters:
      v - The value
    • setObjectName

      public void setObjectName(String v)
      Set the object name
      Parameters:
      v - The value
    • setObject

      public void setObject(Object v)
      Set the object
      Parameters:
      v - The value
    • start

      public void start() throws Throwable
      Start
      Throws:
      Throwable - Thrown in case of an error
    • stop

      public void stop() throws Throwable
      Stop
      Throws:
      Throwable - Thrown in case of an error