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

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


              new ArrayList<String>(jcs.getGroupNames());
            ret =
                new ArrayList<ThriftCounterGroup>(groupNames.size());
            for (String s : groupNames){
                Counters.Group g = jcs.getGroup(s);
                ThriftCounterGroup tcg = toThrift(g);
                ret.add(tcg);
            }
          }
          return ret;
        }
View Full Code Here


          }
          return ret;
        }

        public static ThriftCounterGroup toThrift(Group g) {
            ThriftCounterGroup ret = new ThriftCounterGroup();
            ret.setName(g.getName());
            ret.setDisplayName(g.getDisplayName());
            ret.counters = new HashMap<String, ThriftCounter>();
            for (Counters.Counter c : g) {
                ret.counters.put(c.getDisplayName(), toThrift(c));
            }
            return ret;
View Full Code Here

TOP

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

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.