Package org.onosproject.net.flow
Class CompletedBatchOperation
- java.lang.Object
-
- org.onosproject.net.flow.CompletedBatchOperation
-
- All Implemented Interfaces:
BatchOperationResult<FlowRule>
public class CompletedBatchOperation extends Object implements BatchOperationResult<FlowRule>
Representation of a completed flow rule batch operation.
-
-
Constructor Summary
Constructors Constructor Description CompletedBatchOperation(boolean success, Set<? extends FlowRule> failures, Set<Long> failedIds, DeviceId deviceId)
Creates a new batch completion result.CompletedBatchOperation(boolean success, Set<? extends FlowRule> failures, DeviceId deviceId)
Creates a new batch completion result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceId
deviceId()
Set<Long>
failedIds()
Set<FlowRule>
failedItems()
Obtains a set of items which failed.boolean
isSuccess()
Returns whether the operation was successful.String
toString()
-
-
-
Constructor Detail
-
CompletedBatchOperation
public CompletedBatchOperation(boolean success, Set<? extends FlowRule> failures, Set<Long> failedIds, DeviceId deviceId)
Creates a new batch completion result.- Parameters:
success
- indicates whether the completion is successfulfailures
- set of any failures encounteredfailedIds
- (optional) set of failed operation idsdeviceId
- the device this operation completed for
-
CompletedBatchOperation
public CompletedBatchOperation(boolean success, Set<? extends FlowRule> failures, DeviceId deviceId)
Creates a new batch completion result.- Parameters:
success
- indicates whether the completion is successful.failures
- set of any failures encountereddeviceId
- the device this operation completed for
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
Description copied from interface:BatchOperationResult
Returns whether the operation was successful.- Specified by:
isSuccess
in interfaceBatchOperationResult<FlowRule>
- Returns:
- true if successful, false otherwise
-
failedItems
public Set<FlowRule> failedItems()
Description copied from interface:BatchOperationResult
Obtains a set of items which failed.- Specified by:
failedItems
in interfaceBatchOperationResult<FlowRule>
- Returns:
- a set of failures
-
deviceId
public DeviceId deviceId()
-
-