blob: 04334963244a5eccaeec256432d3aa54d6cdac63 [file] [log] [blame]
Aihua Guo1ce2dd12016-08-12 23:37:44 -04001/*
2 * Copyright 2016 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.tetopology.management.api;
17
18import java.util.List;
19
20import org.onosproject.store.Store;
21
22/**
23 * Inventory of TE network topology.
24 */
25public interface TeTopologyStore
26 extends Store<TeTopologyEvent, TeTopologyStoreDelegate> {
27
28 /**
29 * Returns a collection of currently known networks.
30 *
31 * @param type TE topology type
32 * @return a collection of stored internal TE networks
33 */
34 List<InternalTeNetwork> getNetworks(TeTopologyType type);
35
36 /**
37 * Returns the network.
38 *
39 * @param networkId network id in URI format
40 * @return value of internal TE network
41 */
42 InternalTeNetwork getNetwork(KeyId networkId);
43
44 /**
45 * Updates the network.
46 *
47 * @param network value of the network to be updated
48 */
49 void updateNetwork(InternalTeNetwork network);
50
51 /**
52 * Removes the network.
53 *
54 * @param networkId network id in URI format
55 */
56 void removeNetwork(KeyId networkId);
57
58}