Ray Milkey | 9ed4b96 | 2014-08-20 15:43:40 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.matchaction; |
| 2 | |
Sho SHIMIZU | 7cd8a42 | 2014-08-27 16:05:21 -0700 | [diff] [blame] | 3 | import net.onrc.onos.core.util.AbstractBlockAllocatorBasedIdGenerator; |
Ray Milkey | 9ed4b96 | 2014-08-20 15:43:40 -0700 | [diff] [blame] | 4 | import net.onrc.onos.core.util.IdBlockAllocator; |
Ray Milkey | 9ed4b96 | 2014-08-20 15:43:40 -0700 | [diff] [blame] | 5 | |
Ray Milkey | 9ed4b96 | 2014-08-20 15:43:40 -0700 | [diff] [blame] | 6 | |
| 7 | /** |
| 8 | * Generates a global unique MatchActionIdId. |
| 9 | */ |
| 10 | public class MatchActionOperationsIdGeneratorWithIdBlockAllocator |
Sho SHIMIZU | 7cd8a42 | 2014-08-27 16:05:21 -0700 | [diff] [blame] | 11 | extends AbstractBlockAllocatorBasedIdGenerator<MatchActionOperationsId> { |
Ray Milkey | 9ed4b96 | 2014-08-20 15:43:40 -0700 | [diff] [blame] | 12 | |
Sho SHIMIZU | 7cd8a42 | 2014-08-27 16:05:21 -0700 | [diff] [blame] | 13 | /** |
| 14 | * Creates a FlowId generator instance using specified ID block allocator. |
| 15 | * |
| 16 | * @param allocator the ID block allocator to be used |
| 17 | */ |
| 18 | public MatchActionOperationsIdGeneratorWithIdBlockAllocator(IdBlockAllocator allocator) { |
| 19 | super(allocator); |
| 20 | } |
Ray Milkey | 9ed4b96 | 2014-08-20 15:43:40 -0700 | [diff] [blame] | 21 | |
Sho SHIMIZU | 7cd8a42 | 2014-08-27 16:05:21 -0700 | [diff] [blame] | 22 | @Override |
| 23 | protected MatchActionOperationsId convertFrom(long value) { |
| 24 | return new MatchActionOperationsId(value); |
| 25 | } |
Ray Milkey | 9ed4b96 | 2014-08-20 15:43:40 -0700 | [diff] [blame] | 26 | } |