net.sf.sparql.benchmarking.operations
Interface OperationMix

All Known Implementing Classes:
OperationMixImpl

public interface OperationMix

Represents a mix of operations carried out as a single test run

Author:
rvesse

Method Summary
 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
 

Method Detail

getOperations

Iterator<Operation> getOperations()
Gets the operations in this mix

Returns:
Operations

getOperation

Operation getOperation(int id)
Gets the operation with the specified ID

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.

Parameters:
id - ID
Returns:
Operation
Throws:
IllegalArgumentException - Thrown if the ID is not valid

size

int size()
Gets the number of operations in the operation mix

Returns:
Number of operations

getStats

OperationMixStats getStats()
Gets the statistics for the operation mix

Returns:
Statistics


Copyright © 2014. All Rights Reserved.