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 | |
| 26 | //@Property(name = "msgHandlerPoolSize", intValue = MESSAGE_HANDLER_THREAD_POOL_SIZE, |
| 27 | // label = "Number of threads in the message handler pool") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 28 | public static final String MESSAGE_HANDLER_THREAD_POOL_SIZE = "msgHandlerPoolSize"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 29 | public static final int MESSAGE_HANDLER_THREAD_POOL_SIZE_DEFAULT = 8; |
| 30 | |
| 31 | //@Property(name = "backupPeriod", intValue = BACKUP_PERIOD_MILLIS, |
| 32 | // label = "Delay in ms between successive backup runs") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 33 | public static final String BACKUP_PERIOD_MILLIS = "backupPeriod"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 34 | public static final int BACKUP_PERIOD_MILLIS_DEFAULT = 2000; |
| 35 | |
| 36 | //@Property(name = "antiEntropyPeriod", intValue = ANTI_ENTROPY_PERIOD_MILLIS, |
| 37 | // label = "Delay in ms between anti-entropy runs") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 38 | public static final String ANTI_ENTROPY_PERIOD_MILLIS = "antiEntropyPeriod"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 39 | public static final int ANTI_ENTROPY_PERIOD_MILLIS_DEFAULT = 5000; |
| 40 | |
| 41 | //@Property(name = "persistenceEnabled", boolValue = false, |
| 42 | // label = "Indicates whether or not changes in the flow table should be persisted to disk.") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 43 | public static final String EC_FLOW_RULE_STORE_PERSISTENCE_ENABLED = "ECFlowRuleStorePersistenceEnabled"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 44 | public static final boolean EC_FLOW_RULE_STORE_PERSISTENCE_ENABLED_DEFAULT = false; |
| 45 | |
| 46 | //@Property(name = "backupCount", intValue = DEFAULT_MAX_BACKUP_COUNT, |
| 47 | // label = "Max number of backup copies for each device") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 48 | public static final String MAX_BACKUP_COUNT = "backupCount"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 49 | public static final int MAX_BACKUP_COUNT_DEFAULT = 2; |
| 50 | |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 51 | //@Property(name = "electionTimeoutMillis", longValue = DEFAULT_ELECTION_TIMEOUT_MILLIS, |
| 52 | // label = "the leader election timeout in milliseconds") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 53 | public static final String ELECTION_TIMEOUT_MILLIS = "electionTimeoutMillis"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 54 | public static final long ELECTION_TIMEOUT_MILLIS_DEFAULT = 2500; |
| 55 | |
| 56 | //@Property(name = "garbageCollect", boolValue = GARBAGE_COLLECT, |
| 57 | // label = "Enable group garbage collection") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 58 | public static final String GARBAGE_COLLECT = "garbageCollect"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 59 | public static final boolean GARBAGE_COLLECT_DEFAULT = false; |
| 60 | |
| 61 | //@Property(name = "gcThresh", intValue = GC_THRESH, |
| 62 | // label = "Number of rounds for group garbage collection") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 63 | public static final String GARBAGE_COLLECT_THRESH = "gcThresh"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 64 | public static final int GARBAGE_COLLECT_THRESH_DEFAULT = 6; |
| 65 | |
| 66 | //@Property(name = "allowExtraneousGroups", boolValue = ALLOW_EXTRANEOUS_GROUPS, |
| 67 | // label = "Allow groups in switches not installed by ONOS") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 68 | public static final String ALLOW_EXTRANEOUS_GROUPS = "garbageCollect"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 69 | public static final boolean ALLOW_EXTRANEOUS_GROUPS_DEFAULT = false; |
| 70 | |
| 71 | //@Property(name = "persistenceEnabled", boolValue = PERSIST, |
| 72 | // label = "EXPERIMENTAL: Enable intent persistence") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 73 | public static final String GIS_PERSISTENCE_ENABLED = "GISPersistenceEnabled"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 74 | public static final boolean GIS_PERSISTENCE_ENABLED_DEFAULT = false; |
| 75 | |
| 76 | //@Property(name = "messageHandlerThreadPoolSize", intValue = DEFAULT_MESSAGE_HANDLER_THREAD_POOL_SIZE, |
| 77 | // label = "Size of thread pool to assign message handler") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 78 | public static final String DPS_MESSAGE_HANDLER_THREAD_POOL_SIZE = "DPSMessageHandlerThreadPoolSize"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 79 | public static final int DPS_MESSAGE_HANDLER_THREAD_POOL_SIZE_DEFAULT = 4; |
| 80 | |
| 81 | //@Property(name = "messageHandlerThreadPoolSize", intValue = DEFAULT_MESSAGE_HANDLER_THREAD_POOL_SIZE, |
| 82 | // label = "Size of thread pool to assign message handler") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 83 | public static final String DFS_MESSAGE_HANDLER_THREAD_POOL_SIZE = "DFSMessageHandlerThreadPoolSize"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 84 | public static final int DFS_MESSAGE_HANDLER_THREAD_POOL_SIZE_DEFAULT = 4; |
| 85 | |
| 86 | //@Property(name = "messageHandlerThreadPoolSize", intValue = DEFAULT_MESSAGE_HANDLER_THREAD_POOL_SIZE, |
| 87 | // label = "Size of thread pool to assign message handler") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 88 | public static final String DSS_MESSAGE_HANDLER_THREAD_POOL_SIZE = "DFSMessageHandlerThreadPoolSize"; |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 89 | public static final int DSS_MESSAGE_HANDLER_THREAD_POOL_SIZE_DEFAULT = 4; |
| 90 | |
| 91 | //@Property(name = "linkWeightFunction", value = DEFAULT_LINK_WEIGHT_FUNCTION, |
| 92 | // label = "Default link-weight function: hopCount, linkMetric, geoDistance") |
| 93 | public static final String LINK_WEIGHT_FUNCTION = "linkWeightFunction"; |
| 94 | public static final String LINK_WEIGHT_FUNCTION_DEFAULT = "hopCount"; |
| 95 | } |