Class GraphFactory

    • Constructor Detail

      • GraphFactory

        public GraphFactory()
    • Method Detail

      • openGraph

        public org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource openGraph​(String providerClass,
                                                                                                       ConnectionProperties connectionProperties,
                                                                                                       AuditLog auditLog)
                                                                                                throws JanusConnectorException
        Set the config for Janus Graph.
        Parameters:
        providerClass - - Provider Class name to be used
        connectionProperties - - POJO for the configuration used to create the connector.
        auditLog - - Used for logging errors
        Returns:
        GraphTraversalSource DSL of Gremlin
        Throws:
        JanusConnectorException - if init fails
      • closeGraph

        public void closeGraph()
        Closes the graph instance.
      • isSupportingTransactions

        public boolean isSupportingTransactions()