001/* 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.apache.camel.api.management; 018 019/** 020 * This module contains jmx related system property key constants. 021 */ 022public final class JmxSystemPropertyKeys { 023 024 // disable jmx 025 public static final String DISABLED = "org.apache.camel.jmx.disabled"; 026 027 // jmx domain name 028 public static final String DOMAIN = "org.apache.camel.jmx.mbeanServerDefaultDomain"; 029 030 // the domain name for the camel mbeans 031 public static final String MBEAN_DOMAIN = "org.apache.camel.jmx.mbeanObjectDomainName"; 032 033 // use jvm platform mbean server flag 034 public static final String USE_PLATFORM_MBS = "org.apache.camel.jmx.usePlatformMBeanServer"; 035 036 // whether all processors or only processors with a custom id given should be registered 037 public static final String ONLY_REGISTER_PROCESSOR_WITH_CUSTOM_ID 038 = "org.apache.camel.jmx.onlyRegisterProcessorWithCustomId"; 039 040 // whether to enable gathering load statistics in the background 041 public static final String LOAD_STATISTICS_ENABLED = "org.apache.camel.jmx.loadStatisticsEnabled"; 042 043 // whether to enable gathering endpoint runtime statistics 044 public static final String ENDPOINT_RUNTIME_STATISTICS_ENABLED = "org.apache.camel.jmx.endpointRuntimeStatisticsEnabled"; 045 046 // the level of statistics enabled 047 public static final String STATISTICS_LEVEL = "org.apache.camel.jmx.statisticsLevel"; 048 049 // whether to register always 050 public static final String REGISTER_ALWAYS = "org.apache.camel.jmx.registerAlways"; 051 052 // whether to register when starting new routes 053 public static final String REGISTER_NEW_ROUTES = "org.apache.camel.jmx.registerNewRoutes"; 054 055 // whether to register routes created by route templates (not kamelets) 056 public static final String REGISTER_ROUTES_CREATED_BY_TEMPLATE = "org.apache.camel.jmx.registerRoutesCreateByTemplate"; 057 058 // whether to register routes created by Kamelets 059 public static final String REGISTER_ROUTES_CREATED_BY_KAMELET = "org.apache.camel.jmx.registerRoutesCreateByKamelet"; 060 061 // Whether to remove detected sensitive information (such as passwords) from MBean names and attributes. 062 public static final String MASK = "org.apache.camel.jmx.mask"; 063 064 // Whether to include host name in MBean names 065 public static final String INCLUDE_HOST_NAME = "org.apache.camel.jmx.includeHostName"; 066 067 // To configure the default management name pattern using a JVM system property 068 public static final String MANAGEMENT_NAME_PATTERN = "org.apache.camel.jmx.managementNamePattern"; 069 070 // flag to enable host ip address instead of host name 071 public static final String USE_HOST_IP_ADDRESS = "org.apache.camel.jmx.useHostIPAddress"; 072 073 // flag to enable updating routes via XML 074 public static final String UPDATE_ROUTE_ENABLED = "org.apache.camel.jmx.updateRouteEnabled"; 075 076 private JmxSystemPropertyKeys() { 077 // not instantiated 078 } 079 080}