com.bigdata.service.jini.benchmark
Class ThroughputMaster.Task

java.lang.Object
  extended by com.bigdata.service.jini.benchmark.ThroughputMaster.Task
All Implemented Interfaces:
Callable<Void>
Enclosing class:
ThroughputMaster

public static class ThroughputMaster.Task
extends Object
implements Callable<Void>

Run an unisolated operation.


Constructor Summary
ThroughputMaster.Task(IScaleOutClientIndex ndx, IRunnableBuffer<KVO<Void>[]> insert, IRunnableBuffer<KVO<Void>[]> remove, Random r, int nops, long firstKey, int incRange, double insertRate)
           
 
Method Summary
 Void call()
          Executes a random batch operation with keys presented in sorted order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThroughputMaster.Task

public ThroughputMaster.Task(IScaleOutClientIndex ndx,
                             IRunnableBuffer<KVO<Void>[]> insert,
                             IRunnableBuffer<KVO<Void>[]> remove,
                             Random r,
                             int nops,
                             long firstKey,
                             int incRange,
                             double insertRate)
Parameters:
ndx - The index under test.
TODO:
parameterize for operation type (insert, remove, read, contains). let the caller determine the profile of operations to be executed against the service.
Method Detail

call

public Void call()
          throws Exception
Executes a random batch operation with keys presented in sorted order.

Note: Batch operations with sorted keys have twice the performance of the corresponding operation with unsorted keys due to improved locality of the lookups performed on the index.

Specified by:
call in interface Callable<Void>
Throws:
Exception
TODO:
configure the value size distribution.


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.