Madan Jampani | 47c9373 | 2014-10-06 20:46:08 -0700 | [diff] [blame] | 1 | package org.onlab.onos.store.device.impl; |
| 2 | |
| 3 | import org.onlab.onos.net.DeviceId; |
| 4 | import org.onlab.onos.net.device.PortDescription; |
| 5 | import org.onlab.onos.net.provider.ProviderId; |
| 6 | import org.onlab.onos.store.common.impl.Timestamped; |
| 7 | |
Madan Jampani | 2206e01 | 2014-10-06 21:04:20 -0700 | [diff] [blame^] | 8 | /** |
| 9 | * Information published by GossipDeviceStore to notify peers of a port |
| 10 | * status change event. |
| 11 | */ |
Madan Jampani | 47c9373 | 2014-10-06 20:46:08 -0700 | [diff] [blame] | 12 | public class InternalPortStatusEvent { |
| 13 | |
| 14 | private final ProviderId providerId; |
| 15 | private final DeviceId deviceId; |
| 16 | private final Timestamped<PortDescription> portDescription; |
| 17 | |
| 18 | protected InternalPortStatusEvent( |
| 19 | ProviderId providerId, |
| 20 | DeviceId deviceId, |
| 21 | Timestamped<PortDescription> portDescription) { |
| 22 | this.providerId = providerId; |
| 23 | this.deviceId = deviceId; |
| 24 | this.portDescription = portDescription; |
| 25 | } |
| 26 | |
| 27 | public DeviceId deviceId() { |
| 28 | return deviceId; |
| 29 | } |
| 30 | |
| 31 | public ProviderId providerId() { |
| 32 | return providerId; |
| 33 | } |
| 34 | |
| 35 | public Timestamped<PortDescription> portDescription() { |
| 36 | return portDescription; |
| 37 | } |
| 38 | } |