Hello,
I have some question, again.
First, maybe is the correct behaviour, but it's weird. In the Driver /
Client class, you have a submit method :
/**
* Submits a Gremlin script and bound parameters to the server and
returns a {@link ResultSet} once the write of
* the request is complete. .....
*/
public ResultSet submit(final String gremlin, final Map<String, Object>
parameters) {
try {
return submitAsync(gremlin, parameters).get();
} catch (Exception ex) {
throw new RuntimeException(ex);
}
}
Here for avoid bug in our client we need to "re-wait" just after the submit
with :
client.submit("our request").all().get(); //to be sure than the response is
complete
or :
while (!client.submit("our request").allItemsAvailable());
It's strange to do that in a synchronous method.
Next, it's about log, we would like to have our own layer/pattern and log4j
conf are hard coded into the gremlin.sh. I think put the log4j conf file
into the line args maybe be a good solution, right ?. (If we change the
gremlin.sh we will have some difficult to merge with yours later).
And Probably an other suggestion will let the User API to provide the
LogManager, but more tricky.
Romain.