summaryrefslogtreecommitdiffstats
path: root/v3po/v3po2vpp/src
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-09-09 13:32:43 +0200
committerMaros Marsalek <mmarsale@cisco.com>2016-09-09 13:32:43 +0200
commitfbb8f8c9dbcd209fa45737058fcf5cd1b6d1351b (patch)
tree90beb77ebe06c1c40590bd7a387239e644742959 /v3po/v3po2vpp/src
parent80abb430d7b128de24de49163d8c1e50b08fa95f (diff)
Decrease keepalive timeout to 5s
Change-Id: I5d3e49605686fd883f4f32065c72ad8e881ac2f3 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/v3po2vpp/src')
-rw-r--r--v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/vppstate/VersionCustomizer.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/vppstate/VersionCustomizer.java b/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/vppstate/VersionCustomizer.java
index 128c39e0c..eedf7642f 100644
--- a/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/vppstate/VersionCustomizer.java
+++ b/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/vppstate/VersionCustomizer.java
@@ -17,8 +17,8 @@
package io.fd.honeycomb.translate.v3po.vppstate;
import io.fd.honeycomb.translate.read.ReadContext;
-import io.fd.honeycomb.translate.spi.read.ReaderCustomizer;
import io.fd.honeycomb.translate.read.ReadFailedException;
+import io.fd.honeycomb.translate.spi.read.ReaderCustomizer;
import io.fd.honeycomb.translate.v3po.util.FutureJVppCustomizer;
import io.fd.honeycomb.translate.v3po.util.TranslateUtils;
import java.util.concurrent.CompletionStage;
@@ -38,11 +38,6 @@ public final class VersionCustomizer
extends FutureJVppCustomizer
implements ReaderCustomizer<Version, VersionBuilder> {
- /**
- * Default timeout for executing version read
- */
- private static final int DEFAULT_TIMEOUT_IN_SECONDS = 30;
-
public VersionCustomizer(@Nonnull final FutureJVppCore futureJVppCore) {
super(futureJVppCore);
}
@@ -64,8 +59,7 @@ public final class VersionCustomizer
try {
// Execute with timeout
final CompletionStage<ShowVersionReply> showVersionFuture = getFutureJVpp().showVersion(new ShowVersion());
- final ShowVersionReply reply = TranslateUtils.getReplyForRead(showVersionFuture.toCompletableFuture(), id,
- DEFAULT_TIMEOUT_IN_SECONDS);
+ final ShowVersionReply reply = TranslateUtils.getReplyForRead(showVersionFuture.toCompletableFuture(), id);
builder.setBranch(TranslateUtils.toString(reply.version));
builder.setName(TranslateUtils.toString(reply.program));