protected String toStringClass() { StringBuilder sb = new StringBuilder(); toStringClassDetails(sb); return sb.toString(); }
@Override protected void toStringClassDetails(final StringBuilder builder) { super.toStringClassDetails(builder); if (regionInfos != null) { builder.append(" regions="); for (int i = 0; i < regionInfos.length; ++i) { if (i > 0) builder.append(","); builder.append(regionInfos[i].getShortNameToLog()); } } else if (namespace != null) { builder.append(", namespace=").append(namespace); } else if (tableName != null) { builder.append(", tableName=").append(tableName); } builder.append(", type=").append(type); }
protected String toStringClass() { StringBuilder sb = new StringBuilder(); toStringClassDetails(sb); return sb.toString(); }
protected String toStringClass() { StringBuilder sb = new StringBuilder(); toStringClassDetails(sb); return sb.toString(); }
protected String toStringClass() { StringBuilder sb = new StringBuilder(); toStringClassDetails(sb); return sb.toString(); }
@Override public String toString() { StringBuilder sb = new StringBuilder(); toStringClassDetails(sb); if (procId != null) { sb.append(" id="); sb.append(getProcId()); } if (hasParent()) { sb.append(" parent="); sb.append(getParentProcId()); } if (hasOwner()) { sb.append(" owner="); sb.append(getOwner()); } sb.append(" state="); toStringState(sb); return sb.toString(); }
/** * Build the StringBuilder for the simple form of * procedure string. * @return the StringBuilder */ protected StringBuilder toStringSimpleSB() { final StringBuilder sb = new StringBuilder(); sb.append("pid="); sb.append(getProcId()); if (hasParent()) { sb.append(", ppid="); sb.append(getParentProcId()); } /** * TODO * Enable later when this is being used. * Currently owner not used. if (hasOwner()) { sb.append(", owner="); sb.append(getOwner()); }*/ sb.append(", state="); // pState for Procedure State as opposed to any other kind. toStringState(sb); if (hasException()) { sb.append(", exception=" + getException()); } sb.append("; "); toStringClassDetails(sb); return sb; }