blob: 99c992837b3b29037f2d21b03ba7fc1ff281bdb4 [file] [log] [blame]
Thomas Vachuska58de4162015-09-10 16:15:33 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Thomas Vachuska58de4162015-09-10 16:15:33 -07003 *
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 */
Marc De Leenheerb473b9d2015-02-06 15:21:03 -080016package org.onosproject.store.link.impl;
17
18import com.google.common.base.MoreObjects;
19import org.onosproject.net.link.LinkDescription;
20import org.onosproject.net.provider.ProviderId;
21
22public class LinkInjectedEvent {
23
24 ProviderId providerId;
25 LinkDescription linkDescription;
26
27 public LinkInjectedEvent(ProviderId providerId, LinkDescription linkDescription) {
28 this.providerId = providerId;
29 this.linkDescription = linkDescription;
30 }
31
32 public ProviderId providerId() {
33 return providerId;
34 }
35
36 public LinkDescription linkDescription() {
37 return linkDescription;
38 }
39
40 @Override
41 public String toString() {
42 return MoreObjects.toStringHelper(getClass())
43 .add("providerId", providerId)
44 .add("linkDescription", linkDescription)
45 .toString();
46 }
47
48 // for serializer
49 protected LinkInjectedEvent() {
50 this.providerId = null;
51 this.linkDescription = null;
52 }
53}