blob: 93f1d194005271f6a382d8edd2cebd1f04047ae3 [file] [log] [blame]
jccfff0de92015-03-28 01:40:08 -07001package org.onosproject.net.resource;
2
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}