blob: fc4981fd95802a0c3b413fb0762531fd9a45f8d3 [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 org.onosproject.event.ListenerService;
19
20/**
21 * TE Topology Service API.
22 */
23public interface TeTopologyService
24 extends ListenerService<TeTopologyEvent, TeTopologyListener> {
25
26 /**
27 * Returns a collection of currently known networks.
28 *
29 * @return a collection of networks
30 */
31 Networks getNetworks();
32
33 /**
34 * Returns the network identified by its network id.
35 *
36 * @param networkId network id in URI format
37 * @return value of network
38 */
39 Network getNetwork(KeyId networkId);
40
41 /**
42 * Updates the network.
43 *
44 * @param network network to be updated
45 */
46 void updateNetwork(Network network);
47
48 /**
49 * Removes the network.
50 *
51 * @param networkId network id in URI format
52 */
53 void removeNetwork(KeyId networkId);
54}