com.tinkerpop.rexster
Class RexsterApplicationImpl

java.lang.Object
  extended by com.tinkerpop.rexster.RexsterApplicationImpl
All Implemented Interfaces:
RexsterApplication

public class RexsterApplicationImpl
extends Object
implements RexsterApplication

Author:
Marko A. Rodriguez (http://markorodriguez.com)

Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
RexsterApplicationImpl(String graphName, com.tinkerpop.blueprints.Graph graph)
           
RexsterApplicationImpl(org.apache.commons.configuration.XMLConfiguration properties)
           
 
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
static String getVersion()
           
 void stop()
          Stop serving graphs.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

RexsterApplicationImpl

public RexsterApplicationImpl(String graphName,
                              com.tinkerpop.blueprints.Graph graph)

RexsterApplicationImpl

public RexsterApplicationImpl(org.apache.commons.configuration.XMLConfiguration properties)
Method Detail

getVersion

public static String getVersion()

getGraph

public com.tinkerpop.blueprints.Graph getGraph(String graphName)
Description copied from interface: RexsterApplication
Retrieve the graph contained by the application graph with the given name

Specified by:
getGraph in interface RexsterApplication
Parameters:
graphName - the name of the graph to retrieve
Returns:
the Graph whose name is graphName, or null if it doesn't exist

getApplicationGraph

public RexsterApplicationGraph getApplicationGraph(String graphName)
Description copied from interface: RexsterApplication
Retrieve a specific application graph

Specified by:
getApplicationGraph in interface RexsterApplication
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

public Set<String> getGraphNames()
Description copied from interface: RexsterApplication
Retrieve the names of all graphs that we are serving

Specified by:
getGraphNames in interface RexsterApplication
Returns:
a set of the names of all graphs that we are serving

getStartTime

public long getStartTime()
Description copied from interface: RexsterApplication
Retrieve the time at which we started serving graphs

Specified by:
getStartTime in interface RexsterApplication
Returns:
a long containing the time at which we starting serving graphs, in milliseconds

stop

public void stop()
Description copied from interface: RexsterApplication
Stop serving graphs. Shuts down each of the graphs that we are serving.

Specified by:
stop in interface RexsterApplication

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012. All Rights Reserved.