Package com.Lomikel.Januser
Class StringGremlinClient
java.lang.Object
com.Lomikel.Januser.GremlinClient
com.Lomikel.Januser.StringGremlinClient
StringGremlinClient provides connection to Gremlin Graph passing Gremlin commands as Strings.- Author:
- J.Hrivnac
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStringGremlinClient(String hostname, int port) Create with connection parameters, using GraphBinary serializer. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close client.voidconnect()Connect client.Interpret Gremlin String.interpret2JSON(String request) Interpret Gremlin request as JSON string .voidOpen with GraphSON serializer.Methods inherited from class com.Lomikel.Januser.GremlinClient
cluster, createCluster
-
Field Details
-
_client
-
_mapper
-
log
Logging .
-
-
Constructor Details
-
StringGremlinClient
Create with connection parameters, using GraphBinary serializer.- Parameters:
hostname- The Gremlin hostname.table- The Gremlin port.
-
-
Method Details
-
open
Open with GraphSON serializer.- Specified by:
openin classGremlinClient- Parameters:
hostname- The Gremlin hostname.table- The Gremlin port.
-
connect
Description copied from class:GremlinClientConnect client.- Specified by:
connectin classGremlinClient
-
close
Description copied from class:GremlinClientClose client.- Specified by:
closein classGremlinClient
-
interpret
Interpret Gremlin String. -
interpret2JSON
Interpret Gremlin request as JSON string .
-