Package com.tinkerpop.rexster

Examples of com.tinkerpop.rexster.RexsterApplicationGraph


        deleteVertex3.put("_action", "delete");
        txList.put(new JSONObject(deleteVertex3));

        requestObject.put("tx", txList);

        RexsterApplicationGraph rag = new RexsterApplicationGraph("graph", this.graph);

        this.ctx = new RexsterResourceContext(rag, null, null, requestObject, null, null, null, null);

        ExtensionResponse response = batchExtension.postTx(this.ctx, this.graph, rag);
View Full Code Here


     */
    public DefaultRexsterApplication(final String graphName, final Graph graph, final List<String> allowableNamespaces,
                                     final List<HierarchicalConfiguration> extensionConfigurations,
                                     final MetricRegistry metricRegistry) {
        AbstractMapRexsterApplication.metricRegistry = metricRegistry;
        final RexsterApplicationGraph rag = new RexsterApplicationGraph(graphName, graph, allowableNamespaces, extensionConfigurations);
        this.graphs.put(graphName, rag);
        logger.info(String.format("Graph [%s] loaded", rag.getGraph()));
    }
View Full Code Here

        for (String graphName : ra.getGraphNames()) {
            final Graph g = ra.getGraph(graphName);
            Assert.assertNotNull(g);
            Assert.assertTrue(g instanceof TinkerGraph);

            final RexsterApplicationGraph rag = ra.getApplicationGraph(graphName);
            Assert.assertNotNull(rag);
            Assert.assertTrue(rag.getGraph() instanceof TinkerGraph);
            Assert.assertEquals(graphName, rag.getGraphName());
        }
    }
View Full Code Here

                final HierarchicalConfiguration foundGc = find(gc);
                if (foundGc == null || !configComparator.compare(foundGc, gc)) {
                    differentConfigs.add(gc);

                    // this could be null if the graph was not found and is new to the config
                    final RexsterApplicationGraph ragToKill = this.graphs.get(gc.getString(Tokens.REXSTER_GRAPH_NAME));
                    if (ragToKill != null) {
                        graphsToKill.add(ragToKill);
                    }
                }
            }
View Full Code Here

TOP

Related Classes of com.tinkerpop.rexster.RexsterApplicationGraph

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.