net.sf.sparql.benchmarking.loader
Interface OperationLoader

All Known Implementing Classes:
AbstractGSPDataOperationLoader, AbstractGSPOperationLoader, AbstractNvpOperationLoader, AbstractOperationLoader, DatasetSizeOperationLoader, FixedNvpQueryOperationLoader, FixedNvpUpdateOperationLoader, FixedQueryOperationLoader, FixedUpdateOperationLoader, GSPDeleteOperationLoader, GSPGetOperationLoader, GSPHeadOperationLoader, GSPPostOperationLoader, GSPPutOperationLoader, InMemoryFixedQueryOperationLoader, InMemoryFixedUpdateOperationLoader, InMemoryParameterizedQueryOperationLoader, InMemoryParameterizedUpdateOperationLoader, MixOperationLoader, ParameterizedNvpQueryOperationLoader, ParameterizedNvpUpdateOperationLoader, ParameterizedQueryOperationLoader, ParameterizedUpdateOperationLoader, SleepOperationLoader

public interface OperationLoader

Interface for operation loaders

Each loader is expected to load only a single type of operation since part of the interface contract provides help information to users about the operation that can be loaded.

Author:
rvesse

Method Summary
 OperationLoaderArgument[] getArguments()
          Gets a description of the configuration arguments that this loader expects to receive
 String getDescription()
          Gets a description of the operation that this loader loads
 String getPreferredName()
          Gets the name that this loader prefers to be referenced by
 Operation load(File baseDir, String[] args)
          Load an operation described by the given arguments
 

Method Detail

load

Operation load(File baseDir,
               String[] args)
               throws IOException
Load an operation described by the given arguments

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

getPreferredName

String getPreferredName()
Gets the name that this loader prefers to be referenced by

This is the preferred name used in certain circumstances such as when registering using OperationLoaderRegistry.addLoader(OperationLoader) but users may register a loader with any name they want.

Returns:
Preferred name

getDescription

String getDescription()
Gets a description of the operation that this loader loads

Returns:
Description of the operation

getArguments

OperationLoaderArgument[] getArguments()
Gets a description of the configuration arguments that this loader expects to receive

Returns:
Arguments


Copyright © 2014. All Rights Reserved.