blob: e77fdaf5e77478442eab9d6c7fb21e65472b6cb0 [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
Brian O'Connor893b9222015-06-25 15:07:04 -04003import com.google.common.annotations.Beta;
jccfff0de92015-03-28 01:40:08 -07004import org.onosproject.event.AbstractEvent;
5
6/**
7 * Describes label resource event.
8 */
Brian O'Connor893b9222015-06-25 15:07:04 -04009@Beta
jccfff0de92015-03-28 01:40:08 -070010public final class LabelResourceEvent
11 extends AbstractEvent<LabelResourceEvent.Type, LabelResourcePool> {
12
13 /**
14 * Type of label resource event.
15 */
16 public enum Type {
17 /**
18 * Signifies that a new pool has been administratively created.
19 */
20 POOL_CREATED,
21 /**
22 * Signifies that a new pool has been administratively destroyed.
23 */
24 POOL_DESTROYED,
25 /**
26 * Signifies that a new pool has been administratively changed.
27 */
28 POOL_CAPACITY_CHANGED
29 }
30
31 /**
32 * Creates an event of a given type and the given LabelResourcePool.
33 *
34 * @param type event type
35 * @param subject pool
36 */
37 public LabelResourceEvent(Type type, LabelResourcePool subject) {
38 super(type, subject);
39 }
40}