blob: 2aeaec1dda93300613d2cb6c434f985bba31d3e6 [file] [log] [blame]
Anton Chigrinbf14b372019-01-14 17:29:56 +02001/*
2 * Copyright 2019-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 */
16package org.onosproject.openflow.controller;
17
18import org.onosproject.event.AbstractEvent;
19
20/**
21 * Represent OpenFlow Classifiers events.
22 */
23public class OpenFlowEvent extends AbstractEvent<OpenFlowEvent.Type, OpenFlowClassifier> {
24
25 /**
26 * Enum of OpenFlow event type.
27 */
28 public enum Type {
29 /**
30 * Signifies that a new packet classifier has been added.
31 */
32 INSERT,
33 /**
34 * Signifies that a packet classifier has been removed.
35 */
36 REMOVE
37 }
38
39 /**
40 * Constructor.
41 *
42 * @param type the OpenFlow event type
43 * @param subject the OpenFlow update data
44 */
45 public OpenFlowEvent(Type type, OpenFlowClassifier subject) {
46 super(type, subject);
47 }
48}