net.sf.sparql.benchmarking.operations.gsp
Class GSPPutOperation

java.lang.Object
  extended by net.sf.sparql.benchmarking.operations.AbstractOperation
      extended by net.sf.sparql.benchmarking.operations.gsp.AbstractGSPOperation
          extended by net.sf.sparql.benchmarking.operations.gsp.GSPPutOperation
All Implemented Interfaces:
Operation

public class GSPPutOperation
extends AbstractGSPOperation

An operation which runs a Graph Store Protocol POST operation

Author:
rvesse

Constructor Summary
GSPPutOperation(String name, Model data)
          Creates an operation that operates on the default graph
GSPPutOperation(String name, Model data, String uri)
          Creates an operation that operates on a specific graph
 
Method Summary
<T extends Options>
OperationCallable<T>
createCallable(Runner<T> runner, T options)
          Creates the callable for running the operation in a background thread
 String getContentString()
          Gets a string that shows the content of the operation e.g.
 String getType()
          Gets a descriptive type string for the operation e.g.
 
Methods inherited from class net.sf.sparql.benchmarking.operations.gsp.AbstractGSPOperation
canRun, createErrorInformation, getGraphUri
 
Methods inherited from class net.sf.sparql.benchmarking.operations.AbstractOperation
getId, getName, getStats, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GSPPutOperation

public GSPPutOperation(String name,
                       Model data)
Creates an operation that operates on the default graph

Parameters:
name - Name
data - Data to be added

GSPPutOperation

public GSPPutOperation(String name,
                       Model data,
                       String uri)
Creates an operation that operates on a specific graph

Parameters:
name - Name
data - Data to be added
uri - Graph URI
Method Detail

getType

public String getType()
Description copied from interface: Operation
Gets a descriptive type string for the operation e.g. SPARQL Query

Returns:
Type string

getContentString

public String getContentString()
Description copied from interface: Operation
Gets a string that shows the content of the operation e.g. SPARQL Query string, SPARQL Update string etc.

Returns:
Content string

createCallable

public <T extends Options> OperationCallable<T> createCallable(Runner<T> runner,
                                                               T options)
Description copied from interface: Operation
Creates the callable for running the operation in a background thread

Parameters:
runner - Runner
options - Options
Returns:
Callable


Copyright © 2014. All Rights Reserved.