[03/41] tinkerpop git commit: Add keep-alive functionality to Java Driver.

2016-09-28 Thread spmallette
Add keep-alive functionality to Java Driver.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/d881484a
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/d881484a
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/d881484a

Branch: refs/heads/TINKERPOP-790
Commit: d881484a40ef7c5924e97a1adce7d0a7bf6654ea
Parents: 01d035e
Author: Stephen Mallette 
Authored: Thu Sep 22 07:48:59 2016 -0400
Committer: Stephen Mallette 
Committed: Thu Sep 22 07:49:45 2016 -0400

--
 CHANGELOG.asciidoc  |  1 +
 .../src/reference/gremlin-applications.asciidoc |  1 +
 .../upgrade/release-3.2.x-incubating.asciidoc   | 10 +++
 .../tinkerpop/gremlin/driver/Channelizer.java   | 39 ---
 .../tinkerpop/gremlin/driver/Cluster.java   | 21 ++
 .../tinkerpop/gremlin/driver/Connection.java| 36 +-
 .../gremlin/driver/ConnectionPool.java  |  2 +-
 .../tinkerpop/gremlin/driver/Settings.java  | 12 +++-
 .../driver/handler/WebSocketClientHandler.java  |  1 +
 .../WebSocketGremlinResponseDecoder.java|  5 +-
 .../server/GremlinDriverIntegrateTest.java  | 69 
 11 files changed, 182 insertions(+), 15 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d881484a/CHANGELOG.asciidoc
--
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index 394cc33..9b323af 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -33,6 +33,7 @@ TinkerPop 3.2.3 (Release Date: NOT OFFICIALLY RELEASED YET)
 * `TraversalRing` returns a `null` if it does not contain traversals 
(previously `IdentityTraversal`).
 * Fixed a `JavaTranslator` bug where `Bytecode` instructions were being 
mutated during translation.
 * Added `Path` to Gremlin-Python with respective GraphSON 2.0 deserializer.
+* Added "keep-alive" functionality to the Java driver, which will send a 
heartbeat to the server when normal request activity on a connection stops for 
a period of time.
 * Renamed the `empty.result.indicator` preference to `result.indicator.null` 
in Gremlin Console
 * If `result.indicator.null` is set to an empty string, then no "result line" 
is printed in Gremlin Console.
 * VertexPrograms can now declare traverser requirements, e.g. to have access 
to the path when used with `.program()`.

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d881484a/docs/src/reference/gremlin-applications.asciidoc
--
diff --git a/docs/src/reference/gremlin-applications.asciidoc 
b/docs/src/reference/gremlin-applications.asciidoc
index bff9f0f..ce15d66 100644
--- a/docs/src/reference/gremlin-applications.asciidoc
+++ b/docs/src/reference/gremlin-applications.asciidoc
@@ -687,6 +687,7 @@ The following table describes the various configuration 
options for the Gremlin
 |Key |Description |Default
 |connectionPool.channelizer |The fully qualified classname of the client 
`Channelizer` that defines how to connect to the server. 
|`Channelizer.WebSocketChannelizer`
 |connectionPool.enableSsl |Determines if SSL should be enabled or not. If 
enabled on the server then it must be enabled on the client. |false
+|connectionPool.keepAliveInterval |Length of time in milliseconds to wait on 
an idle connection before sending a keep-alive request. Set to zero to disable 
this feature. |180
 |connectionPool.keyCertChainFile |The X.509 certificate chain file in PEM 
format. |_none_
 |connectionPool.keyFile |The `PKCS#8` private key file in PEM format. |_none_
 |connectionPool.keyPassword |The password of the `keyFile` if it's not 
password-protected |_none_

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d881484a/docs/src/upgrade/release-3.2.x-incubating.asciidoc
--
diff --git a/docs/src/upgrade/release-3.2.x-incubating.asciidoc 
b/docs/src/upgrade/release-3.2.x-incubating.asciidoc
index f9c62e2..e85aeb9 100644
--- a/docs/src/upgrade/release-3.2.x-incubating.asciidoc
+++ b/docs/src/upgrade/release-3.2.x-incubating.asciidoc
@@ -59,6 +59,16 @@ gremlin>
 
 See: link:https://issues.apache.org/jira/browse/TINKERPOP-1409[TINKERPOP-1409]
 
+Java Driver Keep-Alive
+^^
+
+The Java Driver now has a `keepAliveInterval` setting, which controls the 
amount of time in milliseconds it should wait
+on an inactive connection before it sends a message to the server to keep the 
connection maintained. This should help
+environments that use a load balancer in front of Gremlin Server by ensuring 
connections are actively maintained even
+during periods of inactivity.
+
+See: link:https://issues.apache.org/jira/browse/TINKERPOP-1249[TINKERPOP-1249]
+
 Wher

[03/44] tinkerpop git commit: Add keep-alive functionality to Java Driver.

2016-09-28 Thread spmallette
Add keep-alive functionality to Java Driver.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/d881484a
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/d881484a
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/d881484a

Branch: refs/heads/TINKERPOP-944
Commit: d881484a40ef7c5924e97a1adce7d0a7bf6654ea
Parents: 01d035e
Author: Stephen Mallette 
Authored: Thu Sep 22 07:48:59 2016 -0400
Committer: Stephen Mallette 
Committed: Thu Sep 22 07:49:45 2016 -0400

--
 CHANGELOG.asciidoc  |  1 +
 .../src/reference/gremlin-applications.asciidoc |  1 +
 .../upgrade/release-3.2.x-incubating.asciidoc   | 10 +++
 .../tinkerpop/gremlin/driver/Channelizer.java   | 39 ---
 .../tinkerpop/gremlin/driver/Cluster.java   | 21 ++
 .../tinkerpop/gremlin/driver/Connection.java| 36 +-
 .../gremlin/driver/ConnectionPool.java  |  2 +-
 .../tinkerpop/gremlin/driver/Settings.java  | 12 +++-
 .../driver/handler/WebSocketClientHandler.java  |  1 +
 .../WebSocketGremlinResponseDecoder.java|  5 +-
 .../server/GremlinDriverIntegrateTest.java  | 69 
 11 files changed, 182 insertions(+), 15 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d881484a/CHANGELOG.asciidoc
--
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index 394cc33..9b323af 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -33,6 +33,7 @@ TinkerPop 3.2.3 (Release Date: NOT OFFICIALLY RELEASED YET)
 * `TraversalRing` returns a `null` if it does not contain traversals 
(previously `IdentityTraversal`).
 * Fixed a `JavaTranslator` bug where `Bytecode` instructions were being 
mutated during translation.
 * Added `Path` to Gremlin-Python with respective GraphSON 2.0 deserializer.
+* Added "keep-alive" functionality to the Java driver, which will send a 
heartbeat to the server when normal request activity on a connection stops for 
a period of time.
 * Renamed the `empty.result.indicator` preference to `result.indicator.null` 
in Gremlin Console
 * If `result.indicator.null` is set to an empty string, then no "result line" 
is printed in Gremlin Console.
 * VertexPrograms can now declare traverser requirements, e.g. to have access 
to the path when used with `.program()`.

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d881484a/docs/src/reference/gremlin-applications.asciidoc
--
diff --git a/docs/src/reference/gremlin-applications.asciidoc 
b/docs/src/reference/gremlin-applications.asciidoc
index bff9f0f..ce15d66 100644
--- a/docs/src/reference/gremlin-applications.asciidoc
+++ b/docs/src/reference/gremlin-applications.asciidoc
@@ -687,6 +687,7 @@ The following table describes the various configuration 
options for the Gremlin
 |Key |Description |Default
 |connectionPool.channelizer |The fully qualified classname of the client 
`Channelizer` that defines how to connect to the server. 
|`Channelizer.WebSocketChannelizer`
 |connectionPool.enableSsl |Determines if SSL should be enabled or not. If 
enabled on the server then it must be enabled on the client. |false
+|connectionPool.keepAliveInterval |Length of time in milliseconds to wait on 
an idle connection before sending a keep-alive request. Set to zero to disable 
this feature. |180
 |connectionPool.keyCertChainFile |The X.509 certificate chain file in PEM 
format. |_none_
 |connectionPool.keyFile |The `PKCS#8` private key file in PEM format. |_none_
 |connectionPool.keyPassword |The password of the `keyFile` if it's not 
password-protected |_none_

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d881484a/docs/src/upgrade/release-3.2.x-incubating.asciidoc
--
diff --git a/docs/src/upgrade/release-3.2.x-incubating.asciidoc 
b/docs/src/upgrade/release-3.2.x-incubating.asciidoc
index f9c62e2..e85aeb9 100644
--- a/docs/src/upgrade/release-3.2.x-incubating.asciidoc
+++ b/docs/src/upgrade/release-3.2.x-incubating.asciidoc
@@ -59,6 +59,16 @@ gremlin>
 
 See: link:https://issues.apache.org/jira/browse/TINKERPOP-1409[TINKERPOP-1409]
 
+Java Driver Keep-Alive
+^^
+
+The Java Driver now has a `keepAliveInterval` setting, which controls the 
amount of time in milliseconds it should wait
+on an inactive connection before it sends a message to the server to keep the 
connection maintained. This should help
+environments that use a load balancer in front of Gremlin Server by ensuring 
connections are actively maintained even
+during periods of inactivity.
+
+See: link:https://issues.apache.org/jira/browse/TINKERPOP-1249[TINKERPOP-1249]
+
 Wher

[1/2] tinkerpop git commit: Add keep-alive functionality to Java Driver.

2016-09-25 Thread spmallette
Repository: tinkerpop
Updated Branches:
  refs/heads/master 817961f5c -> 6faf9e218


Add keep-alive functionality to Java Driver.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/d881484a
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/d881484a
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/d881484a

Branch: refs/heads/master
Commit: d881484a40ef7c5924e97a1adce7d0a7bf6654ea
Parents: 01d035e
Author: Stephen Mallette 
Authored: Thu Sep 22 07:48:59 2016 -0400
Committer: Stephen Mallette 
Committed: Thu Sep 22 07:49:45 2016 -0400

--
 CHANGELOG.asciidoc  |  1 +
 .../src/reference/gremlin-applications.asciidoc |  1 +
 .../upgrade/release-3.2.x-incubating.asciidoc   | 10 +++
 .../tinkerpop/gremlin/driver/Channelizer.java   | 39 ---
 .../tinkerpop/gremlin/driver/Cluster.java   | 21 ++
 .../tinkerpop/gremlin/driver/Connection.java| 36 +-
 .../gremlin/driver/ConnectionPool.java  |  2 +-
 .../tinkerpop/gremlin/driver/Settings.java  | 12 +++-
 .../driver/handler/WebSocketClientHandler.java  |  1 +
 .../WebSocketGremlinResponseDecoder.java|  5 +-
 .../server/GremlinDriverIntegrateTest.java  | 69 
 11 files changed, 182 insertions(+), 15 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d881484a/CHANGELOG.asciidoc
--
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index 394cc33..9b323af 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -33,6 +33,7 @@ TinkerPop 3.2.3 (Release Date: NOT OFFICIALLY RELEASED YET)
 * `TraversalRing` returns a `null` if it does not contain traversals 
(previously `IdentityTraversal`).
 * Fixed a `JavaTranslator` bug where `Bytecode` instructions were being 
mutated during translation.
 * Added `Path` to Gremlin-Python with respective GraphSON 2.0 deserializer.
+* Added "keep-alive" functionality to the Java driver, which will send a 
heartbeat to the server when normal request activity on a connection stops for 
a period of time.
 * Renamed the `empty.result.indicator` preference to `result.indicator.null` 
in Gremlin Console
 * If `result.indicator.null` is set to an empty string, then no "result line" 
is printed in Gremlin Console.
 * VertexPrograms can now declare traverser requirements, e.g. to have access 
to the path when used with `.program()`.

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d881484a/docs/src/reference/gremlin-applications.asciidoc
--
diff --git a/docs/src/reference/gremlin-applications.asciidoc 
b/docs/src/reference/gremlin-applications.asciidoc
index bff9f0f..ce15d66 100644
--- a/docs/src/reference/gremlin-applications.asciidoc
+++ b/docs/src/reference/gremlin-applications.asciidoc
@@ -687,6 +687,7 @@ The following table describes the various configuration 
options for the Gremlin
 |Key |Description |Default
 |connectionPool.channelizer |The fully qualified classname of the client 
`Channelizer` that defines how to connect to the server. 
|`Channelizer.WebSocketChannelizer`
 |connectionPool.enableSsl |Determines if SSL should be enabled or not. If 
enabled on the server then it must be enabled on the client. |false
+|connectionPool.keepAliveInterval |Length of time in milliseconds to wait on 
an idle connection before sending a keep-alive request. Set to zero to disable 
this feature. |180
 |connectionPool.keyCertChainFile |The X.509 certificate chain file in PEM 
format. |_none_
 |connectionPool.keyFile |The `PKCS#8` private key file in PEM format. |_none_
 |connectionPool.keyPassword |The password of the `keyFile` if it's not 
password-protected |_none_

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d881484a/docs/src/upgrade/release-3.2.x-incubating.asciidoc
--
diff --git a/docs/src/upgrade/release-3.2.x-incubating.asciidoc 
b/docs/src/upgrade/release-3.2.x-incubating.asciidoc
index f9c62e2..e85aeb9 100644
--- a/docs/src/upgrade/release-3.2.x-incubating.asciidoc
+++ b/docs/src/upgrade/release-3.2.x-incubating.asciidoc
@@ -59,6 +59,16 @@ gremlin>
 
 See: link:https://issues.apache.org/jira/browse/TINKERPOP-1409[TINKERPOP-1409]
 
+Java Driver Keep-Alive
+^^
+
+The Java Driver now has a `keepAliveInterval` setting, which controls the 
amount of time in milliseconds it should wait
+on an inactive connection before it sends a message to the server to keep the 
connection maintained. This should help
+environments that use a load balancer in front of Gremlin Server by ensuring 
connections are actively maintained even
+during periods of inactivity.
+
+See: lin

tinkerpop git commit: Add keep-alive functionality to Java Driver.

2016-09-22 Thread spmallette
Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1249 [created] d881484a4


Add keep-alive functionality to Java Driver.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/d881484a
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/d881484a
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/d881484a

Branch: refs/heads/TINKERPOP-1249
Commit: d881484a40ef7c5924e97a1adce7d0a7bf6654ea
Parents: 01d035e
Author: Stephen Mallette 
Authored: Thu Sep 22 07:48:59 2016 -0400
Committer: Stephen Mallette 
Committed: Thu Sep 22 07:49:45 2016 -0400

--
 CHANGELOG.asciidoc  |  1 +
 .../src/reference/gremlin-applications.asciidoc |  1 +
 .../upgrade/release-3.2.x-incubating.asciidoc   | 10 +++
 .../tinkerpop/gremlin/driver/Channelizer.java   | 39 ---
 .../tinkerpop/gremlin/driver/Cluster.java   | 21 ++
 .../tinkerpop/gremlin/driver/Connection.java| 36 +-
 .../gremlin/driver/ConnectionPool.java  |  2 +-
 .../tinkerpop/gremlin/driver/Settings.java  | 12 +++-
 .../driver/handler/WebSocketClientHandler.java  |  1 +
 .../WebSocketGremlinResponseDecoder.java|  5 +-
 .../server/GremlinDriverIntegrateTest.java  | 69 
 11 files changed, 182 insertions(+), 15 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d881484a/CHANGELOG.asciidoc
--
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index 394cc33..9b323af 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -33,6 +33,7 @@ TinkerPop 3.2.3 (Release Date: NOT OFFICIALLY RELEASED YET)
 * `TraversalRing` returns a `null` if it does not contain traversals 
(previously `IdentityTraversal`).
 * Fixed a `JavaTranslator` bug where `Bytecode` instructions were being 
mutated during translation.
 * Added `Path` to Gremlin-Python with respective GraphSON 2.0 deserializer.
+* Added "keep-alive" functionality to the Java driver, which will send a 
heartbeat to the server when normal request activity on a connection stops for 
a period of time.
 * Renamed the `empty.result.indicator` preference to `result.indicator.null` 
in Gremlin Console
 * If `result.indicator.null` is set to an empty string, then no "result line" 
is printed in Gremlin Console.
 * VertexPrograms can now declare traverser requirements, e.g. to have access 
to the path when used with `.program()`.

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d881484a/docs/src/reference/gremlin-applications.asciidoc
--
diff --git a/docs/src/reference/gremlin-applications.asciidoc 
b/docs/src/reference/gremlin-applications.asciidoc
index bff9f0f..ce15d66 100644
--- a/docs/src/reference/gremlin-applications.asciidoc
+++ b/docs/src/reference/gremlin-applications.asciidoc
@@ -687,6 +687,7 @@ The following table describes the various configuration 
options for the Gremlin
 |Key |Description |Default
 |connectionPool.channelizer |The fully qualified classname of the client 
`Channelizer` that defines how to connect to the server. 
|`Channelizer.WebSocketChannelizer`
 |connectionPool.enableSsl |Determines if SSL should be enabled or not. If 
enabled on the server then it must be enabled on the client. |false
+|connectionPool.keepAliveInterval |Length of time in milliseconds to wait on 
an idle connection before sending a keep-alive request. Set to zero to disable 
this feature. |180
 |connectionPool.keyCertChainFile |The X.509 certificate chain file in PEM 
format. |_none_
 |connectionPool.keyFile |The `PKCS#8` private key file in PEM format. |_none_
 |connectionPool.keyPassword |The password of the `keyFile` if it's not 
password-protected |_none_

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d881484a/docs/src/upgrade/release-3.2.x-incubating.asciidoc
--
diff --git a/docs/src/upgrade/release-3.2.x-incubating.asciidoc 
b/docs/src/upgrade/release-3.2.x-incubating.asciidoc
index f9c62e2..e85aeb9 100644
--- a/docs/src/upgrade/release-3.2.x-incubating.asciidoc
+++ b/docs/src/upgrade/release-3.2.x-incubating.asciidoc
@@ -59,6 +59,16 @@ gremlin>
 
 See: link:https://issues.apache.org/jira/browse/TINKERPOP-1409[TINKERPOP-1409]
 
+Java Driver Keep-Alive
+^^
+
+The Java Driver now has a `keepAliveInterval` setting, which controls the 
amount of time in milliseconds it should wait
+on an inactive connection before it sends a message to the server to keep the 
connection maintained. This should help
+environments that use a load balancer in front of Gremlin Server by ensuring 
connections are actively maintained even
+during periods of inactivity