public class EngineCommunicator extends Object
Establishes communication between the graph and engine
Class dedicated to talking with Grakn Engine. Currently used to retrieve factory config and submit commit logs. The communication with engine is bypassed whenever the engineURL provided is a in-memory location.
| Constructor and Description |
|---|
EngineCommunicator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
contactEngine(Optional<URI> engineUrl,
String restType) |
static String |
contactEngine(Optional<URI> engineUri,
String restType,
String body) |
public static String contactEngine(Optional<URI> engineUri, String restType, @Nullable String body)
engineUri - The location of engine.restType - The type of request to make to engine.body - The body to attach to the requestCopyright © 2018 Grakn Labs Ltd. All rights reserved.