net.sf.sparql.benchmarking.operations
Class AbstractOperationCallable<T extends Options>

java.lang.Object
  extended by net.sf.sparql.benchmarking.operations.AbstractOperationCallable<T>
Type Parameters:
T - Options type
All Implemented Interfaces:
Callable<OperationRun>, OperationCallable<T>
Direct Known Subclasses:
AbstractGSPCallable, AbstractQueryCallable, AbstractUpdateCallable, MixOperationCallable, NoOpCallable, SleepCallable

public abstract class AbstractOperationCallable<T extends Options>
extends Object
implements OperationCallable<T>

Abstract implementation of an operation callable

Author:
rvesse

Constructor Summary
AbstractOperationCallable(Runner<T> runner, T options)
          Creates a new operation callable
 
Method Summary
 void cancel()
          Cancels the runner
protected  T getOptions()
          Gets the options
protected  Runner<T> getRunner()
          Gets the runner
protected  boolean isCancelled()
          Gets whether the callable has been asked to cancel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.Callable
call
 

Constructor Detail

AbstractOperationCallable

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

Parameters:
runner - Runner
options - Options
Method Detail

getRunner

protected final Runner<T> getRunner()
Gets the runner

Returns:
Runner

getOptions

protected final T getOptions()
Gets the options

Returns:
Options

isCancelled

protected final boolean isCancelled()
Gets whether the callable has been asked to cancel

Returns:

cancel

public final void cancel()
Description copied from interface: OperationCallable
Cancels the runner

Specified by:
cancel in interface OperationCallable<T extends Options>


Copyright © 2014. All Rights Reserved.