Added toString to ContainerToken. Contributed by Jason Lowe.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1310538 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Arun Murthy 2012-04-06 18:41:51 +00:00
parent 34ed535299
commit 9562831e74
1 changed files with 8 additions and 0 deletions

View File

@ -155,4 +155,12 @@ public class ContainerTokenPBImpl extends ProtoBase<ContainerTokenProto> impleme
builder.setService((service)); builder.setService((service));
} }
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("ContainerToken { ");
sb.append("kind: ").append(getKind()).append(", ");
sb.append("service: ").append(getService()).append(" }");
return sb.toString();
}
} }