com.tinkerpop.rexster.util
Class MockTinkerTransactionalGraph

java.lang.Object
  extended by com.tinkerpop.blueprints.impls.tg.TinkerGraph
      extended by com.tinkerpop.rexster.util.MockTinkerTransactionalGraph
All Implemented Interfaces:
com.tinkerpop.blueprints.Graph, com.tinkerpop.blueprints.IndexableGraph, com.tinkerpop.blueprints.KeyIndexableGraph, com.tinkerpop.blueprints.TransactionalGraph, Serializable

public class MockTinkerTransactionalGraph
extends com.tinkerpop.blueprints.impls.tg.TinkerGraph
implements com.tinkerpop.blueprints.TransactionalGraph

Mocked transactional graph for testing purposes.

This class doesn't really do anything Transactional.

Author:
Marko A. Rodriguez (http://markorodriguez.com)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.tinkerpop.blueprints.impls.tg.TinkerGraph
com.tinkerpop.blueprints.impls.tg.TinkerGraph.TinkerKeyIndex<T extends com.tinkerpop.blueprints.impls.tg.TinkerElement>
 
Nested classes/interfaces inherited from interface com.tinkerpop.blueprints.TransactionalGraph
com.tinkerpop.blueprints.TransactionalGraph.Conclusion
 
Field Summary
 
Fields inherited from class com.tinkerpop.blueprints.impls.tg.TinkerGraph
edgeKeyIndex, edges, indices, vertexKeyIndex, vertices
 
Constructor Summary
MockTinkerTransactionalGraph()
           
MockTinkerTransactionalGraph(String directory)
           
 
Method Summary
 int getCurrentBufferSize()
           
 int getMaxBufferSize()
           
 void setMaxBufferSize(int maxBufferSize)
           
 void startTransaction()
           
 void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
           
 
Methods inherited from class com.tinkerpop.blueprints.impls.tg.TinkerGraph
addEdge, addVertex, clear, createIndex, createKeyIndex, dropIndex, dropKeyIndex, getEdge, getEdges, getEdges, getFeatures, getIndex, getIndexedKeys, getIndices, getVertex, getVertices, getVertices, removeEdge, removeVertex, shutdown, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.tinkerpop.blueprints.TransactionalGraph
shutdown
 
Methods inherited from interface com.tinkerpop.blueprints.Graph
addEdge, addVertex, getEdge, getEdges, getEdges, getFeatures, getVertex, getVertices, getVertices, removeEdge, removeVertex
 

Constructor Detail

MockTinkerTransactionalGraph

public MockTinkerTransactionalGraph(String directory)

MockTinkerTransactionalGraph

public MockTinkerTransactionalGraph()
Method Detail

startTransaction

public void startTransaction()
Specified by:
startTransaction in interface com.tinkerpop.blueprints.TransactionalGraph

stopTransaction

public void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
Specified by:
stopTransaction in interface com.tinkerpop.blueprints.TransactionalGraph

setMaxBufferSize

public void setMaxBufferSize(int maxBufferSize)

getCurrentBufferSize

public int getCurrentBufferSize()

getMaxBufferSize

public int getMaxBufferSize()


Copyright © 2009-2012. All Rights Reserved.