e77fdaf5e77478442eab9d6c7fb21e65472b6cb0
[onosfw.git] /
1 package org.onosproject.incubator.net.resource.label;
2
3 import com.google.common.annotations.Beta;
4 import org.onosproject.event.AbstractEvent;
5
6 /**
7  * Describes label resource event.
8  */
9 @Beta
10 public 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 }