public class OperationMixImpl extends Object implements OperationMix
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
OperationMixImpl(Collection<Operation> ops)
Creates a new operation mix
|
Modifier and Type | Method and Description |
---|---|
Operation |
getOperation(int id)
Gets the operation with the specified ID
|
Iterator<Operation> |
getOperations()
Gets the operations in this mix
|
OperationMixStats |
getStats()
Gets the statistics for the operation mix
|
int |
size()
Gets the number of operations in the operation mix
|
public OperationMixImpl(Collection<Operation> ops)
ops
- Operationspublic Iterator<Operation> getOperations()
OperationMix
getOperations
in interface OperationMix
public OperationMixStats getStats()
OperationMix
getStats
in interface OperationMix
public Operation getOperation(int id)
OperationMix
Generally it should be assumed that operation IDs are allocated using a
zero based index so 0 would obtain the first operation in the mix while
size()-1
would obtain the last operation in the mix. All the
built-in implementations of this interface follow this rule.
getOperation
in interface OperationMix
id
- IDpublic int size()
OperationMix
size
in interface OperationMix
Copyright © 2015. All rights reserved.