Toshio Koide | b8cea26 | 2014-08-12 18:45:46 -0700 | [diff] [blame^] | 1 | package net.onrc.onos.api.flowmanager; |
| 2 | |
| 3 | /** |
| 4 | * Handle class to handle flow batch operation. |
| 5 | */ |
| 6 | public class FlowBatchHandle { |
| 7 | private final FlowBatchId batchId; |
| 8 | |
| 9 | /** |
| 10 | * Creates a handle using batch operation ID. |
| 11 | * <p> |
| 12 | * The ID is automatically generated and assigned by FlowManager, and used |
| 13 | * as an internal key for the flow batch operation map. |
| 14 | * |
| 15 | * @param id the batch operation ID |
| 16 | */ |
| 17 | public FlowBatchHandle(FlowBatchId id) { |
| 18 | batchId = id; |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Gets the flow batch operation ID. |
| 23 | * |
| 24 | * @return the flow batch operation ID |
| 25 | */ |
| 26 | public FlowBatchId getBatchOperationId() { |
| 27 | return batchId; |
| 28 | } |
| 29 | } |