blob: fdab6c0e35de49d959d986ca52fbe96e510c2bcd [file] [log] [blame]
Jonathan Hart5ae29cc2016-05-23 20:50:49 -07001/*
2 * Copyright 2016-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 */
16
17package org.onosproject.cordconfig.access;
18
19import org.onosproject.net.DeviceId;
20
21import java.util.Optional;
22import java.util.Set;
23
24/**
25 * Provides access to the common CORD configuration.
26 */
27public interface CordConfigService {
28
29 /**
30 * Retrieves the set of all access devices in the system.
31 *
32 * @return set of access devices
33 */
34 Set<AccessDeviceData> getAccessDevices();
35
36 /**
37 * Retrieves the access device with the given device ID.
38 *
39 * @param deviceId device ID
40 * @return access device
41 */
42 Optional<AccessDeviceData> getAccessDevice(DeviceId deviceId);
43
44 /**
45 * Retrieves the set of all access agents in the system.
46 *
47 * @return set of access agents
48 */
49 Set<AccessAgentData> getAccessAgents();
50
51 /**
52 * Retrieves the access agent for the given device ID.
53 *
54 * @param deviceId device ID
55 * @return access agent
56 */
57 Optional<AccessAgentData> getAccessAgent(DeviceId deviceId);
58}