hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aajis...@apache.org
Subject hadoop git commit: HADOOP-14690. RetryInvocationHandler should override toString(). Contributed by Yeliang Cang.
Date Mon, 31 Jul 2017 05:10:07 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk f8bed5e9a -> f14be0d24


HADOOP-14690. RetryInvocationHandler should override toString(). Contributed by Yeliang Cang.


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

Branch: refs/heads/trunk
Commit: f14be0d24126747887ddc7580f4a9a70768de23d
Parents: f8bed5e
Author: Akira Ajisaka <aajisaka@apache.org>
Authored: Mon Jul 31 14:08:30 2017 +0900
Committer: Akira Ajisaka <aajisaka@apache.org>
Committed: Mon Jul 31 14:08:30 2017 +0900

----------------------------------------------------------------------
 .../apache/hadoop/io/retry/RetryInvocationHandler.java   | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/f14be0d2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java
index ffdd928..9f01c39 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java
@@ -295,6 +295,17 @@ public class RetryInvocationHandler<T> implements RpcInvocationHandler
{
 
       return new RetryInfo(maxRetryDelay, max, expectedFailoverCount, ex);
     }
+
+    @Override
+    public String toString() {
+      return "RetryInfo{" +
+              "retryTime=" + retryTime +
+              ", delay=" + delay +
+              ", action=" + action +
+              ", expectedFailoverCount=" + expectedFailoverCount +
+              ", failException=" + failException +
+              '}';
+    }
   }
 
   private final ProxyDescriptor<T> proxyDescriptor;


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message