blob: 0269691ea87fb973a239b254c2d0a95836593dac [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
2 * Copyright 2014 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 */
Madan Jampani312a2982014-10-14 21:07:16 -070016package org.onlab.onos.store.host.impl;
17
18import org.onlab.onos.net.HostId;
19import org.onlab.onos.store.Timestamp;
20
21/**
22 * Information published by GossipHostStore to notify peers of a host
23 * removed event.
24 */
25public class InternalHostRemovedEvent {
26
27 private final HostId hostId;
28 private final Timestamp timestamp;
29
30 public InternalHostRemovedEvent(HostId hostId, Timestamp timestamp) {
31 this.hostId = hostId;
32 this.timestamp = timestamp;
33 }
34
35 public HostId hostId() {
36 return hostId;
37 }
38
39 public Timestamp timestamp() {
40 return timestamp;
41 }
42
43 // for serialization.
44 @SuppressWarnings("unused")
45 private InternalHostRemovedEvent() {
46 hostId = null;
47 timestamp = null;
48 }
49}