Package org.apache.hadoop.thriftfs.jobtracker.api

Examples of org.apache.hadoop.thriftfs.jobtracker.api.ThriftGroupList


            return ttts;
        }

        public static ThriftTaskStatus toThrift(TaskStatus ts) {
            ThriftTaskStatus tts = new ThriftTaskStatus();
            tts.setCounters(new ThriftGroupList(toThrift(ts.getCounters())));
            tts.setDiagnosticInfo(ts.getDiagnosticInfo());
            tts.setFinishTime(ts.getFinishTime());
            tts.setOutputSize(ts.getOutputSize());
            tts.setPhase(toThrift(ts.getPhase()));
            tts.setProgress(ts.getProgress());
View Full Code Here


                // getTaskStatuses copies a collection but is not synchronised :(
                sts = t.getTaskStatuses();
            }

            ret.setCounters(new ThriftGroupList(toThrift(t.getCounters())));

            Map<String,ThriftTaskStatus> statusMap = new HashMap<String,ThriftTaskStatus>();
            Map<String,List<String>> dataMap = new HashMap<String,List<String>>();
            for (TaskStatus ts : sts) {
              ThriftTaskAttemptID id = toThrift(ts.getTaskID());
View Full Code Here

              throw new JobNotFoundException();
            }
            if (jcs == null) {
                throw new JobNotFoundException();
            }
            return new ThriftGroupList(JTThriftUtils.toThrift(jcs));
        }
View Full Code Here

            }

            ThriftJobCounterRollups ret = new ThriftJobCounterRollups();
            Counters mapCounters = jip.getMapCounters();
            Counters reduceCounters = jip.getReduceCounters();
            ret.mapCounters = new ThriftGroupList(
                JTThriftUtils.toThrift(mapCounters));
            ret.reduceCounters = new ThriftGroupList(
                JTThriftUtils.toThrift(reduceCounters));
            ret.jobCounters = new ThriftGroupList(
                JTThriftUtils.toThrift(jip.getJobCounters()));

            return ret;
        }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.thriftfs.jobtracker.api.ThriftGroupList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.