blob: f5f441394e429b7c0261d052194e84a6bca3f7f9 [file] [log] [blame]
Jian Li75642312017-01-19 14:23:05 -08001/*
2 * Copyright 2017-present Open Networking Laboratory
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 */
16package org.onosproject.mapping;
17
Jian Li95edb592017-01-29 08:42:07 +090018import org.onosproject.store.Store;
19
Jian Li75642312017-01-19 14:23:05 -080020/**
21 * Interface of a distributed store for managing mapping information.
22 */
Jian Li95edb592017-01-29 08:42:07 +090023public interface MappingStore extends Store<MappingEvent, MappingStoreDelegate> {
Jian Lic7badf92017-02-02 19:43:46 +090024
Jian Licc169f32017-02-24 20:13:23 +090025 /**
26 * Represents the type of mapping store.
27 */
Jian Lic7badf92017-02-02 19:43:46 +090028 enum Type {
29
30 /**
31 * Signifies that mapping information should be stored in map database.
32 */
33 MAP_DATABASE,
34
35 /**
36 * Signifies that mapping information should be stored in map cache.
37 */
38 MAP_CACHE
39 }
Jian Li75642312017-01-19 14:23:05 -080040}