net.sf.sparql.benchmarking.operations
Class AbstractOperation

java.lang.Object
  extended by net.sf.sparql.benchmarking.operations.AbstractOperation
All Implemented Interfaces:
Operation
Direct Known Subclasses:
AbstractGSPOperation, AbstractParameterizedSparqlOperation, AbstractQueryOperation, FixedUpdateOperation, InMemoryFixedUpdateOperation, MixOperation, SleepOperation

public abstract class AbstractOperation
extends Object
implements Operation

Abstract implementation of a test operation

Author:
rvesse

Constructor Summary
AbstractOperation(String name)
          Creates a new operation
 
Method Summary
 int getId()
          Gets the ID used to identify the operation within an operation mix (if known)
 String getName()
          Gets the name of the operation
 OperationStats getStats()
          Gets statistics for the operation
 void setId(int id)
          Sets the ID used to identify the operation within an operation mix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.sparql.benchmarking.operations.Operation
canRun, createCallable, createErrorInformation, getContentString, getType
 

Constructor Detail

AbstractOperation

public AbstractOperation(String name)
Creates a new operation

Parameters:
name - Name of the operation
Method Detail

getStats

public OperationStats getStats()
Description copied from interface: Operation
Gets statistics for the operation

Specified by:
getStats in interface Operation
Returns:
Operation statistics

getName

public String getName()
Description copied from interface: Operation
Gets the name of the operation

In the 1.x releases this was almost always the filename but in the 2.x code base this is often a friendly user defined name

Specified by:
getName in interface Operation
Returns:
Name

getId

public int getId()
Description copied from interface: Operation
Gets the ID used to identify the operation within an operation mix (if known)

Specified by:
getId in interface Operation
Returns:
ID or -1 if no ID unknown

setId

public void setId(int id)
Description copied from interface: Operation
Sets the ID used to identify the operation within an operation mix

Specified by:
setId in interface Operation
Parameters:
id - ID


Copyright © 2014. All Rights Reserved.