Madan Jampani | 47c9373 | 2014-10-06 20:46:08 -0700 | [diff] [blame^] | 1 | package org.onlab.onos.store.device.impl; |
| 2 | |
| 3 | import java.util.List; |
| 4 | |
| 5 | import org.onlab.onos.net.DeviceId; |
| 6 | import org.onlab.onos.net.device.PortDescription; |
| 7 | import org.onlab.onos.net.provider.ProviderId; |
| 8 | import org.onlab.onos.store.common.impl.Timestamped; |
| 9 | |
| 10 | public class InternalPortEvent { |
| 11 | |
| 12 | private final ProviderId providerId; |
| 13 | private final DeviceId deviceId; |
| 14 | private final Timestamped<List<PortDescription>> portDescriptions; |
| 15 | |
| 16 | protected InternalPortEvent( |
| 17 | ProviderId providerId, |
| 18 | DeviceId deviceId, |
| 19 | Timestamped<List<PortDescription>> portDescriptions) { |
| 20 | this.providerId = providerId; |
| 21 | this.deviceId = deviceId; |
| 22 | this.portDescriptions = portDescriptions; |
| 23 | } |
| 24 | |
| 25 | public DeviceId deviceId() { |
| 26 | return deviceId; |
| 27 | } |
| 28 | |
| 29 | public ProviderId providerId() { |
| 30 | return providerId; |
| 31 | } |
| 32 | |
| 33 | public Timestamped<List<PortDescription>> portDescriptions() { |
| 34 | return portDescriptions; |
| 35 | } |
| 36 | } |