com.tinkerpop.rexster
Interface RexsterApplication

All Known Implementing Classes:
RexsterApplicationImpl

public interface RexsterApplication

RexsterApplication is the class that Rexster's servlets all delegate to in order to actually retrieve or query graphs. A RexsterApplication owns all of the Graph instances that Rexster serves.

Users interested in embedding Rexster into their graph store may want provide a custom implementation of RexsterApplication that has logic to expose a Blueprints graph that delegates to the relevant internal graph representations of their graph store.


Method Summary
 RexsterApplicationGraph getApplicationGraph(String graphName)
          Retrieve a specific application graph
 com.tinkerpop.blueprints.Graph getGraph(String graphName)
          Retrieve the graph contained by the application graph with the given name
 Set<String> getGraphNames()
          Retrieve the names of all graphs that we are serving
 long getStartTime()
          Retrieve the time at which we started serving graphs
 void stop()
          Stop serving graphs.
 

Method Detail

getGraph

com.tinkerpop.blueprints.Graph getGraph(String graphName)
Retrieve the graph contained by the application graph with the given name

Parameters:
graphName - the name of the graph to retrieve
Returns:
the Graph whose name is graphName, or null if it doesn't exist

getApplicationGraph

RexsterApplicationGraph getApplicationGraph(String graphName)
Retrieve a specific application graph

Parameters:
graphName - the name of the application graph to retrieve
Returns:
the RexsterApplicationGraph whose name is graphName, or null if it doesn't exist

getGraphNames

Set<String> getGraphNames()
Retrieve the names of all graphs that we are serving

Returns:
a set of the names of all graphs that we are serving

getStartTime

long getStartTime()
Retrieve the time at which we started serving graphs

Returns:
a long containing the time at which we starting serving graphs, in milliseconds

stop

void stop()
Stop serving graphs. Shuts down each of the graphs that we are serving.



Copyright © 2009-2012. All Rights Reserved.