net.sf.sparql.benchmarking.loader.gsp
Class AbstractGSPOperationLoader

java.lang.Object
  extended by net.sf.sparql.benchmarking.loader.AbstractOperationLoader
      extended by net.sf.sparql.benchmarking.loader.gsp.AbstractGSPOperationLoader
All Implemented Interfaces:
OperationLoader
Direct Known Subclasses:
GSPDeleteOperationLoader, GSPGetOperationLoader, GSPHeadOperationLoader

public abstract class AbstractGSPOperationLoader
extends AbstractOperationLoader

Abstract operation loader for basic GSP operations

Author:
rvesse

Constructor Summary
AbstractGSPOperationLoader()
           
 
Method Summary
protected abstract  Operation createOperation(String name)
          Create a GSP operation that runs on the default graph
protected abstract  Operation createOperation(String name, String graphUri)
          Creates a GSP operation that runs on a specified graph
 OperationLoaderArgument[] getArguments()
          Gets a description of the configuration arguments that this loader expects to receive
 Operation load(File baseDir, String[] args)
          Load an operation described by the given arguments
 
Methods inherited from class net.sf.sparql.benchmarking.loader.AbstractOperationLoader
getInputStream, getNameArgument, readFile, resolveFile
 
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.loader.OperationLoader
getDescription, getPreferredName
 

Constructor Detail

AbstractGSPOperationLoader

public AbstractGSPOperationLoader()
Method Detail

load

public Operation load(File baseDir,
                      String[] args)
               throws IOException
Description copied from interface: OperationLoader
Load an operation described by the given arguments

Parameters:
baseDir - Base directory
args - Arguments
Returns:
Operation
Throws:
IOException

createOperation

protected abstract Operation createOperation(String name)
Create a GSP operation that runs on the default graph

Parameters:
name - Name
Returns:
GSP operation

createOperation

protected abstract Operation createOperation(String name,
                                             String graphUri)
Creates a GSP operation that runs on a specified graph

Parameters:
name - Name
graphUri - Graph URI
Returns:
GSP operation

getArguments

public OperationLoaderArgument[] getArguments()
Description copied from interface: OperationLoader
Gets a description of the configuration arguments that this loader expects to receive

Returns:
Arguments


Copyright © 2014. All Rights Reserved.