jcc | fff0de9 | 2015-03-28 01:40:08 -0700 | [diff] [blame] | 1 | package org.onosproject.net.resource; |
| 2 | |
| 3 | import org.onosproject.event.AbstractEvent; |
| 4 | |
| 5 | /** |
| 6 | * Describes label resource event. |
| 7 | */ |
| 8 | public 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 | } |