Package org.onosproject.net.flow
Class CompletedBatchOperation
- java.lang.Object
-
- org.onosproject.net.flow.CompletedBatchOperation
-
- All Implemented Interfaces:
BatchOperationResult<FlowRule>
public class CompletedBatchOperation extends java.lang.Object implements BatchOperationResult<FlowRule>
Representation of a completed flow rule batch operation.
-
-
Constructor Summary
Constructors Constructor Description CompletedBatchOperation(boolean success, java.util.Set<? extends FlowRule> failures, java.util.Set<java.lang.Long> failedIds, DeviceId deviceId)
Creates a new batch completion result.CompletedBatchOperation(boolean success, java.util.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()
java.util.Set<java.lang.Long>
failedIds()
java.util.Set<FlowRule>
failedItems()
Obtains a set of items which failed.boolean
isSuccess()
Returns whether the operation was successful.java.lang.String
toString()
-
-
-
Constructor Detail
-
CompletedBatchOperation
public CompletedBatchOperation(boolean success, java.util.Set<? extends FlowRule> failures, java.util.Set<java.lang.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, java.util.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 java.util.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
-
failedIds
public java.util.Set<java.lang.Long> failedIds()
-
deviceId
public DeviceId deviceId()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-