blob: 26abc45446ad553d548c5c104e907dfc89387109 [file] [log] [blame]
Sean Condon0e89bda2017-03-21 14:23:19 +00001/*
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 */
16package org.onosproject.incubator.net.l2monitoring.cfm.service;
17
18import org.onosproject.event.AbstractEvent;
19import org.onosproject.incubator.net.l2monitoring.cfm.Mep;
20
21/**
22 * Event related to the maintenance of CFM MEPs.
23 */
24public class CfmMepEvent extends AbstractEvent<CfmMepEvent.Type, Mep> {
25
26 /**
27 * Type of Mep events.
28 */
29 public enum Type {
30 /**
31 * Signifies that a new Mep has been detected.
32 */
33 MEP_ADDED,
34
35 /**
36 * Signifies that a Mep has been removed.
37 */
38 MEP_REMOVED,
39
40 /**
41 * Signifies that a Mep has been updated.
42 */
43 MEP_UPDATED,
44
45 /**
46 * Signifies that the MEP has raised a fault alarm.
47 */
48 MEP_FAULT_ALARM
49 }
50
51 /**
52 * Creates an event of a given type and for the specified Mep and the current time.
53 *
54 * @param type Mep event type
55 * @param mep event Mep subject
56 */
57 protected CfmMepEvent(Type type, Mep mep) {
58 super(type, mep);
59 // TODO Auto-generated constructor stub
60 }
61}