Skip to content

Package: BrokerSettingKey

BrokerSettingKey

nameinstructionbranchcomplexitylinemethod
BrokerSettingKey(String, int, String)
M: 8 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
key()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
static {...}
M: 213 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 20 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 2022 Red Hat Inc and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Red Hat Inc - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.broker.core.setting;
14:
15: import org.eclipse.kapua.broker.core.plugin.ConnectorDescriptor;
16: import org.eclipse.kapua.broker.core.router.CamelKapuaDefaultRouter;
17: import org.eclipse.kapua.commons.setting.SettingKey;
18:
19: /**
20: * Broker settings
21: */
22: public enum BrokerSettingKey implements SettingKey {
23: /**
24: * Allow disabling the default connector descriptor
25: */
26: DISABLE_DEFAULT_CONNECTOR_DESCRIPTOR("broker.connector.descriptor.default.disable"),
27: /**
28: * A URI to a configuration file for providing additional {@link ConnectorDescriptor} configurations
29: */
30: CONFIGURATION_URI("broker.connector.descriptor.configuration.uri"),
31: /**
32: * Broker jaxb context provider class name
33: */
34: BROKER_JAXB_CONTEXT_CLASS_NAME("broker.jaxb_context_class_name"),
35: /**
36: * Broker IP resolver implementation (if not evaluated, the default resolver will be used).
37: */
38: BROKER_IP_RESOLVER_CLASS_NAME("broker.ip_resolver_class_name"),
39: /**
40: * Broker id resolver implementation
41: */
42: BROKER_ID_RESOLVER_CLASS_NAME("broker.id_resolver_class_name"),
43: /**
44: * Broker IP used by the default resolver.
45: */
46: BROKER_IP("broker.ip"),
47: /**
48: * System message creator implementation.
49: */
50: SYSTEM_MESSAGE_CREATOR_CLASS_NAME("broker.system.message_creator_class_name"),
51: /**
52: * Authenticator implementation
53: */
54: AUTHENTICATOR_CLASS_NAME("broker.authenticator_class_name"),
55: /**
56: * Admin authentication logic custom implementation
57: */
58: ADMIN_AUTHENTICATION_LOGIC_CLASS_NAME("broker.authentication_logic_admin_class_name"),
59: /**
60: * User authentication logic custom implementation
61: */
62: USER_AUTHENTICATION_LOGIC_CLASS_NAME("broker.authentication_logic_user_class_name"),
63: /**
64: * Authorizer implementation
65: */
66: AUTHORIZER_CLASS_NAME("broker.authorizer_class_name"),
67: /**
68: * Enable/disable the clustered stealing link feature
69: */
70: BROKER_STEALING_LINK_ENABLED("broker.stealing_link.enabled"),
71: /**
72: * Max wait time to properly startup the stealing link feature
73: */
74: STEALING_LINK_INITIALIZATION_MAX_WAIT_TIME("broker.stealing_link.initialization_max_wait_time"),
75: /**
76: * No destination broker internal use client pool - maximun total size
77: */
78: BROKER_CLIENT_POOL_NO_DEST_TOTAL_MAX_SIZE("broker.client_pool.no_dest_total_max_size"),
79: /**
80: * No destination broker internal use client pool - maximun size
81: */
82: BROKER_CLIENT_POOL_NO_DEST_MAX_SIZE("broker.client_pool.no_dest_max_size"),
83: /**
84: * No destination broker internal use client pool - minimum size
85: */
86: BROKER_CLIENT_POOL_NO_DEST_MIN_SIZE("broker.client_pool.no_dest_min_size"),
87: /**
88: * Broker name (used also for the vm connector name)
89: */
90: BROKER_NAME("broker.name"),
91: /**
92: * Publish message info if the message size is over the specified threshold
93: */
94: PUBLISHED_MESSAGE_SIZE_LOG_THRESHOLD("broker.security.published.message_size.log_threshold"),
95: /**
96: * Camel default route configuration file name. (please specify just the name. The file path will be discovered by the class loader)
97: * Used by the {@link CamelKapuaDefaultRouter} to load the routing configuration.
98: */
99: CAMEL_DEFAULT_ROUTE_CONFIGURATION_FILE_NAME("camel.default_route.configuration_file_name");
100:
101: private String key;
102:
103: private BrokerSettingKey(String key) {
104: this.key = key;
105: }
106:
107: @Override
108: public String key() {
109: return key;
110: }
111: }