Brian O'Connor | 6de2e20 | 2015-05-21 14:30:41 -0700 | [diff] [blame] | 1 | package org.onosproject.incubator.net.resource.label; |
jcc | fff0de9 | 2015-03-28 01:40:08 -0700 | [diff] [blame] | 2 | |
Brian O'Connor | 893b922 | 2015-06-25 15:07:04 -0400 | [diff] [blame^] | 3 | import com.google.common.annotations.Beta; |
jcc | fff0de9 | 2015-03-28 01:40:08 -0700 | [diff] [blame] | 4 | import org.onosproject.event.AbstractEvent; |
| 5 | |
| 6 | /** |
| 7 | * Describes label resource event. |
| 8 | */ |
Brian O'Connor | 893b922 | 2015-06-25 15:07:04 -0400 | [diff] [blame^] | 9 | @Beta |
jcc | fff0de9 | 2015-03-28 01:40:08 -0700 | [diff] [blame] | 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 | } |