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 TypeMethodDescriptionvoid
close()
Close client.void
connect()
Connect client.Interpret Gremlin String.interpret2JSON
(String request) Interpret Gremlin request as JSON string .void
Open 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:
open
in classGremlinClient
- Parameters:
hostname
- The Gremlin hostname.table
- The Gremlin port.
-
connect
Description copied from class:GremlinClient
Connect client.- Specified by:
connect
in classGremlinClient
-
close
Description copied from class:GremlinClient
Close client.- Specified by:
close
in classGremlinClient
-
interpret
Interpret Gremlin String. -
interpret2JSON
Interpret Gremlin request as JSON string .
-