Enum Class ManagementMBeansLevel

java.lang.Object
java.lang.Enum<ManagementMBeansLevel>
org.apache.camel.ManagementMBeansLevel
All Implemented Interfaces:
Serializable, Comparable<ManagementMBeansLevel>, Constable

public enum ManagementMBeansLevel extends Enum<ManagementMBeansLevel>
Controls which Camel objects are registered as JMX MBeans for management and monitoring.

When JMX management is active, Camel can expose the CamelContext, its Routes, and individual Processors as MBeans. Registering many processors improves observability but increases heap usage; this enum lets operators trade off granularity against overhead.

Configure via ManagementAgent.setMBeansLevel(ManagementMBeansLevel) or the property camel.main.jmx-management-mbeans-level.

Since:
3.17
See Also:
  • Enum Constant Details

    • ContextOnly

      public static final ManagementMBeansLevel ContextOnly
      Only register the CamelContext MBean.
    • RoutesOnly

      public static final ManagementMBeansLevel RoutesOnly
      Register MBeans for the CamelContext and routes.
    • Default

      public static final ManagementMBeansLevel Default
      Register MBeans for the CamelContext, routes, and processors.
  • Method Details

    • values

      public static ManagementMBeansLevel[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ManagementMBeansLevel valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isRoutes

      public boolean isRoutes()
    • isProcessors

      public boolean isProcessors()