blob: b532378989b8092b2311a60538d7084c6d29567a [file] [log] [blame]
Brian O'Connor6de2e202015-05-21 14:30:41 -07001package org.onosproject.incubator.net.resource.label;
jccfff0de92015-03-28 01:40:08 -07002
3import org.onosproject.event.AbstractEvent;
4
5/**
6 * Describes label resource event.
7 */
8public final class LabelResourceEvent
9 extends AbstractEvent<LabelResourceEvent.Type, LabelResourcePool> {
10
11 /**
12 * Type of label resource event.
13 */
14 public enum Type {
15 /**
16 * Signifies that a new pool has been administratively created.
17 */
18 POOL_CREATED,
19 /**
20 * Signifies that a new pool has been administratively destroyed.
21 */
22 POOL_DESTROYED,
23 /**
24 * Signifies that a new pool has been administratively changed.
25 */
26 POOL_CAPACITY_CHANGED
27 }
28
29 /**
30 * Creates an event of a given type and the given LabelResourcePool.
31 *
32 * @param type event type
33 * @param subject pool
34 */
35 public LabelResourceEvent(Type type, LabelResourcePool subject) {
36 super(type, subject);
37 }
38}