blob: 391e8e52fecdad598118cd7469a67b8ad9972ad9 [file] [log] [blame]
Naoki Shiota5a056062016-05-05 18:43:59 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Naoki Shiota5a056062016-05-05 18:43:59 -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 */
16package org.onosproject.newoptical.api;
17
18import com.google.common.annotations.Beta;
19import org.onosproject.event.AbstractEvent;
20
21/**
22 * Event related to optical domain path setup.
23 */
24@Beta
25public class OpticalPathEvent extends AbstractEvent<OpticalPathEvent.Type, OpticalConnectivityId> {
26 public enum Type {
27 PATH_INSTALLED,
28 PATH_REMOVED
29 }
30
31 /**
32 * Creates OpticalPathEvent object with specified type and subject.
Ray Milkeybb23e0b2016-08-02 17:00:21 -070033 *
34 * @param type type of event
35 * @param subject subject of the event
Naoki Shiota5a056062016-05-05 18:43:59 -070036 */
37 public OpticalPathEvent(Type type, OpticalConnectivityId subject) {
38 super(type, subject);
39 }
40
41}