public class GraknSessionImpl extends Object implements GraknSession
Builds a TxFactory
This class facilitates the construction of GraknTx by determining which factory should be built.
It does this by either defaulting to an in memory tx GraknTxTinker or by
retrieving the factory definition from engine.
The deployment of engine decides on the backend and this class will handle producing the correct graphs.
DEFAULT_URI| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CommitLogHandler |
commitLogHandler() |
GraknConfig |
config() |
static GraknSessionImpl |
create(Keyspace keyspace,
String engineUri) |
static GraknSessionImpl |
createEngineSession(Keyspace keyspace,
String engineUri,
GraknConfig config) |
GraknComputer |
getGraphComputer() |
Keyspace |
keyspace() |
GraknTx |
open(GraknTxType transactionType) |
protected void |
submitLogs() |
String |
uri() |
public CommitLogHandler commitLogHandler()
public static GraknSessionImpl create(Keyspace keyspace, String engineUri)
public static GraknSessionImpl createEngineSession(Keyspace keyspace, String engineUri, GraknConfig config)
public GraknTx open(GraknTxType transactionType)
open in interface GraknSessionpublic GraknComputer getGraphComputer()
getGraphComputer in interface GraknSessionpublic void close()
throws GraknTxOperationException
close in interface GraknSessionclose in interface AutoCloseableGraknTxOperationExceptionpublic String uri()
uri in interface GraknSessionpublic Keyspace keyspace()
keyspace in interface GraknSessionpublic GraknConfig config()
config in interface GraknSessionprotected void submitLogs()
Copyright © 2018 Grakn Labs Ltd. All rights reserved.