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 DeviceIddeviceId()Set<Long>failedIds()Set<FlowRule>failedItems()Obtains a set of items which failed.booleanisSuccess()Returns whether the operation was successful.StringtoString() 
 - 
 
- 
- 
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:BatchOperationResultReturns whether the operation was successful.- Specified by:
 isSuccessin interfaceBatchOperationResult<FlowRule>- Returns:
 - true if successful, false otherwise
 
 
- 
failedItems
public Set<FlowRule> failedItems()
Description copied from interface:BatchOperationResultObtains a set of items which failed.- Specified by:
 failedItemsin interfaceBatchOperationResult<FlowRule>- Returns:
 - a set of failures
 
 
- 
deviceId
public DeviceId deviceId()
 
 - 
 
 -