All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tinkerpop.rexster.protocol.RexsterApplicationHolder Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
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