blob: e487b951da3dd11af09811af36efd5fdc696ef0d [file] [log] [blame]
Avantika-Huawei7f7376a2016-05-11 17:07:50 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Avantika-Huawei7f7376a2016-05-11 17:07:50 +05303 *
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 */
harikrushna-Huaweia2c7c202017-04-10 18:22:00 +053016package org.onosproject.pcep.server;
Avantika-Huawei7f7376a2016-05-11 17:07:50 +053017
18/**
19 * Representation of PCEP database sync status on session establishment.
20 */
21public enum PcepSyncStatus {
22
23 /**
24 * Specifies that the DB state is not synchronized.
25 */
26 NOT_SYNCED(0),
27
28 /**
29 * Specifies that the DB state is currently undergoing synchronization.
30 */
31 IN_SYNC(1),
32
33 /**
34 * Specifies that the DB state synchronization is completed.
35 */
36 SYNCED(2);
37
38 int value;
39
40 /**
41 * Assign val with the value as the sync status.
42 *
43 * @param val sync status
44 */
45 PcepSyncStatus(int val) {
46 value = val;
47 }
48}