blob: e5dd857ac69ee16ed04bef7e00eadd233ad63ce9 [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.device.impl;
17
18import com.google.common.base.MoreObjects;
19import org.onosproject.net.DeviceId;
20import org.onosproject.net.device.DeviceDescription;
21import org.onosproject.net.provider.ProviderId;
22
Yuta HIGUCHIf15065e2016-08-30 14:01:51 -070023/**
24 * Remnant of ConfigProvider.
25 * @deprecated in Hummingbird(1.7.0)
26 */
27@Deprecated
Marc De Leenheerb473b9d2015-02-06 15:21:03 -080028public class DeviceInjectedEvent {
29 private final ProviderId providerId;
30 private final DeviceId deviceId;
31 private final DeviceDescription deviceDescription;
32
33 protected DeviceInjectedEvent(
34 ProviderId providerId,
35 DeviceId deviceId,
36 DeviceDescription deviceDescription) {
37 this.providerId = providerId;
38 this.deviceId = deviceId;
39 this.deviceDescription = deviceDescription;
40 }
41
42 public DeviceId deviceId() {
43 return deviceId;
44 }
45
46 public ProviderId providerId() {
47 return providerId;
48 }
49
50 public DeviceDescription deviceDescription() {
51 return deviceDescription;
52 }
53
54 @Override
55 public String toString() {
56 return MoreObjects.toStringHelper(getClass())
57 .add("providerId", providerId)
58 .add("deviceId", deviceId)
59 .add("deviceDescription", deviceDescription)
60 .toString();
61 }
62
63 // for serializer
64 protected DeviceInjectedEvent() {
65 this.providerId = null;
66 this.deviceId = null;
67 this.deviceDescription = null;
68 }
69}