コード例 #1
0
        public object Any(RunMR request)
        {
            var taskAssigment = MapReduceUtils.scheduleMRJob(request.fileNameIn, request.fileNameOut);

            MapReduceUtils.runMRJob(request, taskAssigment);
            return(new RunMRResponse());
        }
コード例 #2
0
        public object Any(GetStatus request)
        {
            var result = MapReduceUtils.getStatuses();

            return(new GetStatusResponse {
                inactiveWorkers = result.Item2, statuses = result.Item1
            });
        }