@Override public String toString() { return "SynchronousRemoteEvaluation [modelID=" + _modelID.get() + ", methodID=" + _methodID.get() + ", evaluationID=" + _evaluationID.get() + ", args=" + GCollections.toString(_args.get()) + "]"; }
public byte[] accumulateFragment(final int groupID, final byte[] fragment) { final byte[] accumulated; synchronized (_fragments) { final byte[] previous = _fragments.get(groupID); if (previous == null) { accumulated = fragment; } else { accumulated = GCollections.concatenate(previous, fragment); } _fragments.put(groupID, accumulated); } return accumulated; }