com.tinkerpop.rexster.protocol.RexsterApplicationHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rexster-protocol Show documentation
Show all versions of rexster-protocol Show documentation
RexPro is a binary protocol for Rexster graph server.
package com.tinkerpop.rexster.protocol;
import com.tinkerpop.blueprints.Graph;
import com.tinkerpop.rexster.RexsterApplicationGraph;
import com.tinkerpop.rexster.Tokens;
import com.tinkerpop.rexster.server.RexsterApplication;
import java.util.Set;
/**
* Proxies call to the RexsterApplication instance to limit the methods available in RexsterConsole.
*
* @author Stephen Mallette (http://stephen.genoprime.com)
* @author Blake Eggleston (bdeggleston.github.com)
*/
public class RexsterApplicationHolder {
private final RexsterApplication rexsterApplication;
public RexsterApplicationHolder(final RexsterApplication rexsterApplication) {
this.rexsterApplication = rexsterApplication;
}
public Graph getGraph(final String graphName) {
return this.rexsterApplication.getGraph(graphName);
}
public RexsterApplicationGraph getApplicationGraph(final String graphName) {
return this.rexsterApplication.getApplicationGraph(graphName);
}
public Set getGraphNames() {
return this.rexsterApplication.getGraphNames();
}
public String getVersion() {
return Tokens.REXSTER_VERSION;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy