示例#1
0
        /// <exception cref="System.IO.IOException"/>
        public virtual GetCountersResponse GetCounters(GetCountersRequest request)
        {
            GetCountersResponse resp     = recordFactory.NewRecordInstance <GetCountersResponse>();
            Counters            counters = recordFactory.NewRecordInstance <Counters>();

            counters.AddAllCounterGroups(new Dictionary <string, CounterGroup>());
            resp.SetCounters(counters);
            return(resp);
        }
示例#2
0
        /// <exception cref="System.IO.IOException"/>
        public virtual GetTaskReportResponse GetTaskReport(GetTaskReportRequest request)
        {
            GetTaskReportResponse resp = recordFactory.NewRecordInstance <GetTaskReportResponse
                                                                          >();
            TaskReport report = recordFactory.NewRecordInstance <TaskReport>();

            report.SetTaskId(request.GetTaskId());
            report.SetTaskState(TaskState.New);
            Counters counters = recordFactory.NewRecordInstance <Counters>();

            counters.AddAllCounterGroups(new Dictionary <string, CounterGroup>());
            report.SetCounters(counters);
            report.AddAllRunningAttempts(new AList <TaskAttemptId>());
            return(resp);
        }