Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [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 | |
| 17 | package org.onosproject.store; |
| 18 | |
| 19 | /** |
| 20 | * Name/Value constants for properties. |
| 21 | */ |
| 22 | public final class OsgiPropertyConstants { |
| 23 | private OsgiPropertyConstants() { |
| 24 | } |
| 25 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 26 | public static final String MESSAGE_HANDLER_THREAD_POOL_SIZE = "msgHandlerPoolSize"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 27 | public static final int MESSAGE_HANDLER_THREAD_POOL_SIZE_DEFAULT = 8; |
| 28 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 29 | public static final String BACKUP_PERIOD_MILLIS = "backupPeriod"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 30 | public static final int BACKUP_PERIOD_MILLIS_DEFAULT = 2000; |
| 31 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 32 | public static final String ANTI_ENTROPY_PERIOD_MILLIS = "antiEntropyPeriod"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 33 | public static final int ANTI_ENTROPY_PERIOD_MILLIS_DEFAULT = 5000; |
| 34 | |
Ray Milkey | bd508ed | 2019-03-19 14:22:02 -0700 | [diff] [blame] | 35 | public static final String EC_FLOW_RULE_STORE_PERSISTENCE_ENABLED = "persistenceEnabled"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 36 | public static final boolean EC_FLOW_RULE_STORE_PERSISTENCE_ENABLED_DEFAULT = false; |
| 37 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 38 | public static final String MAX_BACKUP_COUNT = "backupCount"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 39 | public static final int MAX_BACKUP_COUNT_DEFAULT = 2; |
| 40 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 41 | public static final String ELECTION_TIMEOUT_MILLIS = "electionTimeoutMillis"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 42 | public static final long ELECTION_TIMEOUT_MILLIS_DEFAULT = 2500; |
| 43 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 44 | public static final String GARBAGE_COLLECT = "garbageCollect"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 45 | public static final boolean GARBAGE_COLLECT_DEFAULT = false; |
| 46 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 47 | public static final String GARBAGE_COLLECT_THRESH = "gcThresh"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 48 | public static final int GARBAGE_COLLECT_THRESH_DEFAULT = 6; |
| 49 | |
Thomas Vachuska | f566fa2 | 2018-10-30 14:03:36 -0700 | [diff] [blame] | 50 | public static final String ALLOW_EXTRANEOUS_GROUPS = "allowExtraneousGroups"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 51 | public static final boolean ALLOW_EXTRANEOUS_GROUPS_DEFAULT = false; |
| 52 | |
Thomas Vachuska | f566fa2 | 2018-10-30 14:03:36 -0700 | [diff] [blame] | 53 | public static final String GIS_PERSISTENCE_ENABLED = "persistenceEnabled"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 54 | public static final boolean GIS_PERSISTENCE_ENABLED_DEFAULT = false; |
| 55 | |
Thomas Vachuska | f566fa2 | 2018-10-30 14:03:36 -0700 | [diff] [blame] | 56 | public static final String DPS_MESSAGE_HANDLER_THREAD_POOL_SIZE = "messageHandlerThreadPoolSize"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 57 | public static final int DPS_MESSAGE_HANDLER_THREAD_POOL_SIZE_DEFAULT = 4; |
| 58 | |
Thomas Vachuska | f566fa2 | 2018-10-30 14:03:36 -0700 | [diff] [blame] | 59 | public static final String DFS_MESSAGE_HANDLER_THREAD_POOL_SIZE = "messageHandlerThreadPoolSize"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 60 | public static final int DFS_MESSAGE_HANDLER_THREAD_POOL_SIZE_DEFAULT = 4; |
| 61 | |
Thomas Vachuska | f566fa2 | 2018-10-30 14:03:36 -0700 | [diff] [blame] | 62 | public static final String DSS_MESSAGE_HANDLER_THREAD_POOL_SIZE = "messageHandlerThreadPoolSize"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 63 | public static final int DSS_MESSAGE_HANDLER_THREAD_POOL_SIZE_DEFAULT = 4; |
| 64 | |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 65 | public static final String LINK_WEIGHT_FUNCTION = "linkWeightFunction"; |
| 66 | public static final String LINK_WEIGHT_FUNCTION_DEFAULT = "hopCount"; |
| 67 | } |