Georgios Katsikas | 8360098 | 2017-05-28 20:41:45 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017-present Open Networking Foundation |
| 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 | |
| 17 | package org.onosproject.drivers.server.devices; |
| 18 | |
Georgios Katsikas | 2ebd8a0 | 2018-06-27 18:32:50 +0200 | [diff] [blame] | 19 | import org.onosproject.drivers.server.devices.nic.NicDevice; |
Georgios Katsikas | 8360098 | 2017-05-28 20:41:45 +0200 | [diff] [blame] | 20 | import org.onosproject.net.device.DeviceDescription; |
| 21 | |
| 22 | import java.util.Collection; |
| 23 | |
| 24 | /** |
| 25 | * Carrier of immutable information about a server device. |
| 26 | */ |
| 27 | public interface ServerDeviceDescription extends DeviceDescription { |
| 28 | |
| 29 | /** |
| 30 | * The set of CPUs of the server device. |
| 31 | * |
| 32 | * @return set of CPUs of the server device |
| 33 | */ |
| 34 | Collection<CpuDevice> cpus(); |
| 35 | |
| 36 | /** |
| 37 | * The set of NICs of the server device. |
| 38 | * |
| 39 | * @return set of NICs of the server device |
| 40 | */ |
| 41 | Collection<NicDevice> nics(); |
| 42 | |
| 43 | } |