Package org.apache.hadoop.chukwa.rest.bean

Examples of org.apache.hadoop.chukwa.rest.bean.ClientTraceBean


          String data = new String(c.getData());
          String[] entries = data.split("\n");
          for(String entry : entries) {
            Matcher m = pattern.matcher(entry);
            if(m.matches()) {
              ClientTraceBean ctb = new ClientTraceBean();
              size = Long.parseLong(m.group(9));
              action = m.group(10);
              StringBuilder date = new StringBuilder();
              date.append(m.group(1));
              date.append(" ");
              date.append(m.group(2));
              ctb.setDate(date.toString());
              ctb.setSrc(m.group(5));
              ctb.setDest(m.group(7));
              ctb.setAction(action);
              ctb.setSize(size);         
              list.add(ctb);           
            } else {
              log.error("Unparsable line: "+entry);
            }
          }
View Full Code Here


          String data = new String(c.getData());
          String[] entries = data.split("\n");
          for(String entry : entries) {
            Matcher m = pattern.matcher(entry);
            if(m.matches()) {
              ClientTraceBean ctb = new ClientTraceBean();
              size = Long.parseLong(m.group(9));
              action = m.group(10);
              StringBuilder date = new StringBuilder();
              date.append(m.group(1));
              date.append(" ");
              date.append(m.group(2));
              ctb.setDate(date.toString());
              ctb.setSrc(m.group(5));
              ctb.setDest(m.group(7));
              ctb.setAction(action);
              ctb.setSize(size);         
              list.add(ctb);           
            } else {
              log.error("Unparsable line: "+entry);
            }
          }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.chukwa.rest.bean.ClientTraceBean

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.