blob: 0bdfdbfa17d82ff870c42a840c9224816585a9e3 [file] [log] [blame]
Madan Jampani47c93732014-10-06 20:46:08 -07001package org.onlab.onos.store.device.impl;
2
3import org.onlab.onos.net.DeviceId;
4import org.onlab.onos.net.device.PortDescription;
5import org.onlab.onos.net.provider.ProviderId;
6import org.onlab.onos.store.common.impl.Timestamped;
7
Madan Jampani2206e012014-10-06 21:04:20 -07008/**
9 * Information published by GossipDeviceStore to notify peers of a port
10 * status change event.
11 */
Madan Jampani47c93732014-10-06 20:46:08 -070012public 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}