Jian Li | ff8b9f9 | 2018-06-05 17:36:37 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018-present Open Networking Foundation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | package org.onosproject.openstacktelemetry.api; |
| 17 | |
Jian Li | ff8b9f9 | 2018-06-05 17:36:37 +0900 | [diff] [blame] | 18 | /** |
| 19 | * Provides constants used in OpenstackTelemetry. |
| 20 | */ |
| 21 | public final class Constants { |
| 22 | |
| 23 | private Constants() { |
| 24 | } |
| 25 | |
| 26 | public static final String OPENSTACK_TELEMETRY_APP_ID = "org.onosproject.openstacktelemetry"; |
| 27 | |
| 28 | private static final String DEFAULT_SERVER_IP = "localhost"; |
| 29 | |
| 30 | public static final String DEFAULT_KAFKA_SERVER_IP = DEFAULT_SERVER_IP; |
| 31 | public static final int DEFAULT_KAFKA_SERVER_PORT = 9092; |
| 32 | public static final int DEFAULT_KAFKA_RETRIES = 0; |
| 33 | public static final String DEFAULT_KAFKA_REQUIRED_ACKS = "all"; |
| 34 | public static final int DEFAULT_KAFKA_BATCH_SIZE = 16384; |
| 35 | public static final int DEFAULT_KAFKA_LINGER_MS = 1; |
| 36 | public static final int DEFAULT_KAFKA_MEMORY_BUFFER = 33554432; |
Jian Li | b9fe349 | 2018-06-07 17:19:07 +0900 | [diff] [blame^] | 37 | public static final String DEFAULT_KAFKA_KEY_SERIALIZER = |
| 38 | "org.apache.kafka.common.serialization.StringSerializer"; |
| 39 | public static final String DEFAULT_KAFKA_VALUE_SERIALIZER = |
| 40 | "org.apache.kafka.common.serialization.ByteArraySerializer"; |
Jian Li | ff8b9f9 | 2018-06-05 17:36:37 +0900 | [diff] [blame] | 41 | |
| 42 | public static final String DEFAULT_REST_SERVER_IP = DEFAULT_SERVER_IP; |
| 43 | public static final int DEFAULT_REST_SERVER_PORT = 80; |
| 44 | } |