Esempio n. 1
0
 /** <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);
 }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 4
0
 /** <inheritDoc /> */
 public ComputeJobResultPolicy OnResult(IComputeJobResult <NetSimpleJobResult> res,
                                        IList <IComputeJobResult <NetSimpleJobResult> > rcvd)
 {
     return(ComputeJobResultPolicy.Wait);
 }
Esempio n. 5
0
 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);
 }
Esempio n. 6
0
        protected override ComputeJobResultPolicy Result0(IComputeJobResult <T> res)
        {
            _res.Add(res.Data);

            return(ComputeJobResultPolicy.Wait);
        }
Esempio n. 7
0
 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);