/** <inheritDoc /> */ public ComputeJobResultPolicy Result(IComputeJobResult <int> res, IList <IComputeJobResult <int> > rcvd) { return(ComputeJobResultPolicy.Wait); }
/** <inheritDoc /> */ protected override ComputeJobResultPolicy Result0(IComputeJobResult <T> res) { return(_rdc.Collect(res.Data) ? ComputeJobResultPolicy.Wait : ComputeJobResultPolicy.Reduce); }
/// <summary> /// Initializes a new instance of the <see cref="ComputeJobResultGenericWrapper{T}"/> class. /// </summary> /// <param name="jobRes">The job result to wrap.</param> public ComputeJobResultGenericWrapper(IComputeJobResult <object> jobRes) { _wrappedRes = jobRes; }
/** <inheritDoc /> */ public ComputeJobResultPolicy OnResult(IComputeJobResult <NetSimpleJobResult> res, IList <IComputeJobResult <NetSimpleJobResult> > rcvd) { return(ComputeJobResultPolicy.Wait); }
public ComputeJobResultPolicy OnResult(IComputeJobResult <int> res, IList <IComputeJobResult <int> > rcvd) { // If there is no exception, wait for all job results. return(res.Exception != null ? ComputeJobResultPolicy.Failover : ComputeJobResultPolicy.Wait); }
protected override ComputeJobResultPolicy Result0(IComputeJobResult <T> res) { _res.Add(res.Data); return(ComputeJobResultPolicy.Wait); }
public ComputeJobResultPolicy OnResult(IComputeJobResult <string> res, IList <IComputeJobResult <string> > rcvd) { return(ComputeJobResultPolicy.Wait); }
/// <summary> /// Internal result processing routine. /// </summary> /// <param name="res">Result.</param> /// <returns>Policy.</returns> protected abstract ComputeJobResultPolicy Result0(IComputeJobResult <T> res);