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

(cherry picked from commit f14be0d241)
This commit is contained in:
Akira Ajisaka 2017-07-31 14:08:30 +09:00
parent 98c3544e94
commit 9c8a296169
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50
1 changed files with 11 additions and 0 deletions

View File

@ -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;