From 665d1723c0a7a45e045a6a28ec1664dca67c747e Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Fri, 1 Mar 2013 18:48:34 -0800 Subject: [PATCH] Add TaskLockPosse#toString --- .../metamx/druid/merger/coordinator/TaskLockbox.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/merger/src/main/java/com/metamx/druid/merger/coordinator/TaskLockbox.java b/merger/src/main/java/com/metamx/druid/merger/coordinator/TaskLockbox.java index b62bca604d4..5e972b18805 100644 --- a/merger/src/main/java/com/metamx/druid/merger/coordinator/TaskLockbox.java +++ b/merger/src/main/java/com/metamx/druid/merger/coordinator/TaskLockbox.java @@ -1,6 +1,7 @@ package com.metamx.druid.merger.coordinator; import com.google.common.base.Function; +import com.google.common.base.Objects; import com.google.common.base.Optional; import com.google.common.base.Predicate; import com.google.common.collect.ImmutableList; @@ -401,5 +402,14 @@ public class TaskLockbox { return taskIds; } + + @Override + public String toString() + { + return Objects.toStringHelper(this) + .add("taskLock", taskLock) + .add("taskIds", taskIds) + .toString(); + } } }