Permalink
Browse files

Overrode toString() for AsyncOperation.

  • Loading branch information...
1 parent 45be07f commit ef38bbb05e058d59e35d23facbc413149d64465f @afeinberg afeinberg committed Feb 3, 2010
Showing with 12 additions and 2 deletions.
  1. +12 −2 src/java/voldemort/server/protocol/admin/AsyncOperationStatus.java
@@ -57,7 +57,17 @@ public boolean hasException() {
@Override
public String toString() {
- return "Task(id = " + getId() + ", description = " + getDescription() + ", complete = "
- + isComplete() + ", status = " + getStatus() + ")";
+ StringBuilder builder = new StringBuilder();
+ builder.append("AsyncOperationStatus(id = ");
+ builder.append(getId());
+ builder.append(", description = ");
+ builder.append(getDescription());
+ builder.append(", complete = ");
+ builder.append(isComplete());
+ builder.append(", status = ");
+ builder.append(getStatus());
+ builder.append(")");
+
+ return builder.toString();
}
}

0 comments on commit ef38bbb

Please sign in to comment.