blob: bdd4ec4fae743a7db34d73f5c782d6e3c3b67561 [file] [log] [blame]
Thomas Vachuska58de4162015-09-10 16:15:33 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Thomas Vachuska58de4162015-09-10 16:15:33 -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 */
Brian O'Connor6de2e202015-05-21 14:30:41 -070016package org.onosproject.incubator.net.resource.label;
jccfff0de92015-03-28 01:40:08 -070017
Brian O'Connor893b9222015-06-25 15:07:04 -040018import com.google.common.annotations.Beta;
jccfff0de92015-03-28 01:40:08 -070019import org.onosproject.event.AbstractEvent;
20
21/**
22 * Describes label resource event.
23 */
Brian O'Connor893b9222015-06-25 15:07:04 -040024@Beta
jccfff0de92015-03-28 01:40:08 -070025public final class LabelResourceEvent
26 extends AbstractEvent<LabelResourceEvent.Type, LabelResourcePool> {
27
28 /**
29 * Type of label resource event.
30 */
31 public enum Type {
32 /**
33 * Signifies that a new pool has been administratively created.
34 */
35 POOL_CREATED,
36 /**
37 * Signifies that a new pool has been administratively destroyed.
38 */
39 POOL_DESTROYED,
40 /**
41 * Signifies that a new pool has been administratively changed.
42 */
43 POOL_CAPACITY_CHANGED
44 }
45
46 /**
47 * Creates an event of a given type and the given LabelResourcePool.
48 *
49 * @param type event type
50 * @param subject pool
51 */
52 public LabelResourceEvent(Type type, LabelResourcePool subject) {
53 super(type, subject);
54 }
55}