blob: 18c1db0822e3b9bff52b28df14a5279f2a540821 [file] [log] [blame]
Sithara Punnassery0b51d432017-03-28 01:09:28 -07001/*
2 * Copyright 2017-present 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 */
16
17package org.onosproject.netconf.client;
18
19import org.onosproject.config.DynamicConfigEvent;
20import org.onosproject.net.DeviceId;
21import org.onosproject.yang.model.ResourceId;
22
23
24/**
25 * Event details.
26 */
27public class EventData {
28
29 private DeviceId devId;
30 private ResourceId key;
31 private DynamicConfigEvent.Type type;
32
33 /**
34 * Creates an instance of EventData.
35 *
36 * @param devId device id
37 * @param key device key
38 * @param type event type
39 */
40 public EventData(DeviceId devId, ResourceId key, DynamicConfigEvent.Type type) {
41 devId = devId;
42 key = key;
43 type = type;
44 }
45
46 public DeviceId getDevId() {
47 return devId;
48 }
49
50 public ResourceId getKey() {
51 return key;
52 }
53
54 public DynamicConfigEvent.Type getType() {
55 return type;
56 }
57}