blob: 944698c1e4357df92cce1de8d99a942db683f089 [file] [log] [blame]
Mohammad Shahid4c30ea32017-08-09 18:02:10 +05301/*
2 * Copyright 2017-present Open Networking Foundation
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.evpnopenflow.rsc.vpnafconfig;
18
19import org.onosproject.event.AbstractEvent;
20import org.onosproject.evpnopenflow.rsc.VpnAfConfig;
21
22/**
23 * Describes network VPN af config event.
24 */
25public class VpnAfConfigEvent extends AbstractEvent<VpnAfConfigEvent.Type, VpnAfConfig> {
26
27 /**
28 * Type of VPN port events.
29 */
30 public enum Type {
31 /**
32 * Signifies that VPN af config has been set.
33 */
34 VPN_AF_CONFIG_SET,
35 /**
36 * Signifies that VPN af config has been deleted.
37 */
38 VPN_AF_CONFIG_DELETE,
39 /**
40 * Signifies that VPN af config has been updated.
41 */
42 VPN_AF_CONFIG_UPDATE
43 }
44
45 /**
46 * Creates an event of a given type and for the specified VPN af config.
47 *
48 * @param type VPN af config type
49 * @param vpnAfConfig VPN af config subject
50 */
51 public VpnAfConfigEvent(Type type, VpnAfConfig vpnAfConfig) {
52 super(type, vpnAfConfig);
53 }
54
55 /**
56 * Creates an event of a given type and for the specified VPN af config.
57 *
58 * @param type VPN af config type
59 * @param vpnAfConfig VPN af config subject
60 * @param time occurrence time
61 */
62 public VpnAfConfigEvent(Type type, VpnAfConfig vpnAfConfig, long time) {
63 super(type, vpnAfConfig, time);
64 }
65}