net.sf.sparql.benchmarking.operations.update.callables
Class AbstractUpdateCallable<T extends Options>

java.lang.Object
  extended by net.sf.sparql.benchmarking.operations.AbstractOperationCallable<T>
      extended by net.sf.sparql.benchmarking.operations.update.callables.AbstractUpdateCallable<T>
Type Parameters:
T - Options type
All Implemented Interfaces:
Callable<OperationRun>, OperationCallable<T>
Direct Known Subclasses:
AbstractInMemoryUpdateCallable, AbstractRemoteUpdateCallable

public abstract class AbstractUpdateCallable<T extends Options>
extends AbstractOperationCallable<T>

Abstract callable for update operations

Author:
rvesse

Constructor Summary
AbstractUpdateCallable(Runner<T> runner, T options)
          Creates a new callable
 
Method Summary
 UpdateRun call()
           
protected abstract  UpdateProcessor createUpdateProcessor(UpdateRequest update)
          Creates an update processor for running the update
protected  void customizeRequest(UpdateProcessor processor)
          Provides derived implementations the option to customize the update processor before actually executing the update e.g.
protected abstract  UpdateRequest getUpdate()
          Gets the update request to be executed
 
Methods inherited from class net.sf.sparql.benchmarking.operations.AbstractOperationCallable
cancel, getOptions, getRunner, isCancelled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUpdateCallable

public AbstractUpdateCallable(Runner<T> runner,
                              T options)
Creates a new callable

Parameters:
runner - Runner
options - Options
Method Detail

getUpdate

protected abstract UpdateRequest getUpdate()
Gets the update request to be executed

Returns:
Update request

customizeRequest

protected void customizeRequest(UpdateProcessor processor)
Provides derived implementations the option to customize the update processor before actually executing the update e.g. to add custom parameters

The default implementation does nothing.

Parameters:
processor - Update processor

createUpdateProcessor

protected abstract UpdateProcessor createUpdateProcessor(UpdateRequest update)
Creates an update processor for running the update

Parameters:
update - Update
Returns:
Update processor

call

public UpdateRun call()
               throws Exception
Throws:
Exception


Copyright © 2014. All Rights Reserved.