com.tinkerpop.rexster.gremlin
Class GremlinEvaluationJob

java.lang.Object
  extended by com.tinkerpop.rexster.gremlin.GremlinEvaluationJob

public class GremlinEvaluationJob
extends Object

Data structure keeping a script to be evaluated and its result/output together.

Credit to Neo Technology (http://neotechnology.com/) for most of the code related to the Gremlin in Rexster. Specifically, this code was borrowed from https://github.com/neo4j/webadmin and re-purposed for Rexster's needs.

Original author Jacob Hansson


Field Summary
protected  boolean complete
           
protected  StringWriter outputWriter
          The scriptengine error and out streams are directed into this string writer.
protected  Object result
           
protected  String script
           
 
Constructor Summary
GremlinEvaluationJob(String script)
           
 
Method Summary
 Writer getOutputWriter()
           
 Object getResult()
           
 String getScript()
           
 boolean isComplete()
           
 void setResult(Object result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

script

protected String script

result

protected Object result

complete

protected volatile boolean complete

outputWriter

protected StringWriter outputWriter
The scriptengine error and out streams are directed into this string writer.

Constructor Detail

GremlinEvaluationJob

public GremlinEvaluationJob(String script)
Method Detail

isComplete

public boolean isComplete()

setResult

public void setResult(Object result)

getResult

public Object getResult()

getScript

public String getScript()

getOutputWriter

public Writer getOutputWriter()


Copyright © 2009-2012. All Rights Reserved.