blob: 71f6f87f86d5b97d324071ff44863318defda136 [file] [log] [blame]
Ray Milkeyb5646e62018-10-16 11:42:18 -07001/*
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
17package org.onosproject.store;
18
19/**
20 * Name/Value constants for properties.
21 */
22public 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 Milkey2d7bca12018-10-17 14:51:52 -070028 public static final String MESSAGE_HANDLER_THREAD_POOL_SIZE = "msgHandlerPoolSize";
Ray Milkeyb5646e62018-10-16 11:42:18 -070029 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 Milkey2d7bca12018-10-17 14:51:52 -070033 public static final String BACKUP_PERIOD_MILLIS = "backupPeriod";
Ray Milkeyb5646e62018-10-16 11:42:18 -070034 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 Milkey2d7bca12018-10-17 14:51:52 -070038 public static final String ANTI_ENTROPY_PERIOD_MILLIS = "antiEntropyPeriod";
Ray Milkeyb5646e62018-10-16 11:42:18 -070039 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 Milkey2d7bca12018-10-17 14:51:52 -070043 public static final String EC_FLOW_RULE_STORE_PERSISTENCE_ENABLED = "ECFlowRuleStorePersistenceEnabled";
Ray Milkeyb5646e62018-10-16 11:42:18 -070044 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 Milkey2d7bca12018-10-17 14:51:52 -070048 public static final String MAX_BACKUP_COUNT = "backupCount";
Ray Milkeyb5646e62018-10-16 11:42:18 -070049 public static final int MAX_BACKUP_COUNT_DEFAULT = 2;
50
Ray Milkeyb5646e62018-10-16 11:42:18 -070051 //@Property(name = "electionTimeoutMillis", longValue = DEFAULT_ELECTION_TIMEOUT_MILLIS,
52 // label = "the leader election timeout in milliseconds")
Ray Milkey2d7bca12018-10-17 14:51:52 -070053 public static final String ELECTION_TIMEOUT_MILLIS = "electionTimeoutMillis";
Ray Milkeyb5646e62018-10-16 11:42:18 -070054 public static final long ELECTION_TIMEOUT_MILLIS_DEFAULT = 2500;
55
56 //@Property(name = "garbageCollect", boolValue = GARBAGE_COLLECT,
57 // label = "Enable group garbage collection")
Ray Milkey2d7bca12018-10-17 14:51:52 -070058 public static final String GARBAGE_COLLECT = "garbageCollect";
Ray Milkeyb5646e62018-10-16 11:42:18 -070059 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 Milkey2d7bca12018-10-17 14:51:52 -070063 public static final String GARBAGE_COLLECT_THRESH = "gcThresh";
Ray Milkeyb5646e62018-10-16 11:42:18 -070064 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 Milkey2d7bca12018-10-17 14:51:52 -070068 public static final String ALLOW_EXTRANEOUS_GROUPS = "garbageCollect";
Ray Milkeyb5646e62018-10-16 11:42:18 -070069 public static final boolean ALLOW_EXTRANEOUS_GROUPS_DEFAULT = false;
70
71 //@Property(name = "persistenceEnabled", boolValue = PERSIST,
72 // label = "EXPERIMENTAL: Enable intent persistence")
Ray Milkey2d7bca12018-10-17 14:51:52 -070073 public static final String GIS_PERSISTENCE_ENABLED = "GISPersistenceEnabled";
Ray Milkeyb5646e62018-10-16 11:42:18 -070074 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 Milkey2d7bca12018-10-17 14:51:52 -070078 public static final String DPS_MESSAGE_HANDLER_THREAD_POOL_SIZE = "DPSMessageHandlerThreadPoolSize";
Ray Milkeyb5646e62018-10-16 11:42:18 -070079 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 Milkey2d7bca12018-10-17 14:51:52 -070083 public static final String DFS_MESSAGE_HANDLER_THREAD_POOL_SIZE = "DFSMessageHandlerThreadPoolSize";
Ray Milkeyb5646e62018-10-16 11:42:18 -070084 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 Milkey2d7bca12018-10-17 14:51:52 -070088 public static final String DSS_MESSAGE_HANDLER_THREAD_POOL_SIZE = "DFSMessageHandlerThreadPoolSize";
Ray Milkeyb5646e62018-10-16 11:42:18 -070089 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}