Package com.dianping.cat.app

Examples of com.dianping.cat.app.AppDataCommand


    return m_logicalTableName;
  }
 
  @Override
  public String getPhysicalTableName(Map<String, Object> hints) {
    AppDataCommand command = (AppDataCommand) hints.get(QueryEngine.HINT_DATA_OBJECT);

    return m_physicalTableName + "_" + command.getCommandId();
  }
View Full Code Here


  public void testBatch() throws DalException {
    AppDataCommandDao dao = lookup(AppDataCommandDao.class);
    AppDataCommand[] commands = new AppDataCommand[100];

    for (int i = 0; i < 100; i++) {
      AppDataCommand command = new AppDataCommand();

      command.setCommandId(i % 3 + 1);
      command.setAccessNumber(i);
      command.setAccessNumberSum(i);
      command.setAppVersion(i);
      command.setCity(i);
      command.setCode(i);
      command.setConnnectType(i);
      command.setCreationDate(new Date());
      command.setPeriod(new Date());
      command.setPlatform(i);
      command.setRequestPackage(i);
      command.setResponsePackage(i);
      command.setResponseSumTime(i);
      command.setResponseSumTimeSum(i);
      command.setStatus(i);

    }
    dao.insert(commands);
  }
View Full Code Here

  public void test() throws DalException {
    AppDataCommandDao dao = lookup(AppDataCommandDao.class);
    AppDataCommand[] commands = new AppDataCommand[100];

    for (int i = 0; i < 100; i++) {
      AppDataCommand command = new AppDataCommand();

      command.setCommandId(i % 3 + 1);
      command.setAccessNumber(i);
      command.setAccessNumberSum(i);
      command.setAppVersion(i);
      command.setCity(i);
      command.setCode(i);
      command.setConnnectType(i);
      command.setCreationDate(new Date());
      command.setPeriod(new Date());
      command.setPlatform(i);
      command.setRequestPackage(i);
      command.setResponsePackage(i);
      command.setResponseSumTime(i);
      command.setResponseSumTimeSum(i);
      command.setStatus(i);

      commands[i] = command;

      dao.insert(command);
    }
View Full Code Here

      List<AppData> datas = new ArrayList<AppData>();
      HashMap<String, AppData> value = outerEntry.getValue();

      for (Entry<String, AppData> entry : value.entrySet()) {
        AppData appData = entry.getValue();
        AppDataCommand proto = new AppDataCommand();

        proto.setPeriod(period);
        proto.setMinuteOrder(minute);
        proto.setCommandId(appData.getCommand());
        proto.setCity(appData.getCity());
        proto.setOperator(appData.getOperator());
        proto.setNetwork(appData.getNetwork());
        proto.setAppVersion(appData.getVersion());
        proto.setConnnectType(appData.getConnectType());
        proto.setCode(appData.getCode());
        proto.setPlatform(appData.getPlatform());
        proto.setAccessNumber(appData.getCount());
        proto.setResponseSumTime(appData.getResponseTime());
        proto.setRequestPackage(appData.getRequestByte());
        proto.setResponsePackage(appData.getResponseByte());
        proto.setCreationDate(new Date());

        commands.add(proto);
        datas.add(appData);

        if (commands.size() >= 100) {
View Full Code Here

TOP

Related Classes of com.dianping.cat.app.AppDataCommand

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.