mirror of https://github.com/apache/jclouds.git
added toString to there's more detail when troubleshooting timeout errors
This commit is contained in:
parent
a802c2adf5
commit
4823c8b8f5
|
@ -119,6 +119,8 @@ public class FutureIterables {
|
|||
final Map<T, Exception> errorMap = Maps.newHashMap();
|
||||
for (final java.util.Map.Entry<T, ? extends Future<?>> future : responses.entrySet()) {
|
||||
Futures.makeListenable(future.getValue(), exec).addListener(new Runnable() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
future.getValue().get();
|
||||
|
@ -130,6 +132,11 @@ public class FutureIterables {
|
|||
}
|
||||
doneSignal.countDown();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "callGetOnFuture(" + future.getKey() + "," + future.getValue() + ")";
|
||||
}
|
||||
}, exec);
|
||||
}
|
||||
try {
|
||||
|
@ -168,6 +175,11 @@ public class FutureIterables {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "callGetOnFuture()";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue