@Override
 public String toString() {
   return "SynchronousRemoteEvaluation [modelID="
       + _modelID.get()
       + ", methodID="
       + _methodID.get()
       + ", evaluationID="
       + _evaluationID.get()
       + ", args="
       + GCollections.toString(_args.get())
       + "]";
 }
Exemple #2
0
 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;
 }