@Test public void testPut() { LideaLogBO bo = new LideaLogBO(); bo.setTime(TimeUtil.dateToString(LocalDateTime.now())); bo.setAppName("cabinet-base-server"); bo.setServiceName("com.fcbox.edms.terminal.api.CabinetServiceFacade"); bo.setMethodName("getCabinetInfo"); bo.setCount(RandomUtil.getRandomNumberInRange(1, 100)); bo.setAvg(RandomUtil.getRandomNumberInRange(100, 999)); bo.setException(RandomUtil.getRandomNumberInRange(1, 100)); bo.setTraceIds(UUID.randomUUID().toString().replace("-", "")); lideaLogDAO.put(bo); System.out.println("=========================================================================================="); System.out.println(JSON.toJSONString(bo)); }
public void put(LideaLogBO bo) { Put put = LideaLogEntry.of(bo); hbaseTemplate.execute(Const.LIDEA_LOG_TABLE, (htable) -> { htable.put(put); return null; }); }
LideaLogDAO { public void put(LideaLogBO bo) { Put put = LideaLogEntry.of(bo); hbaseTemplate.execute(Const.LIDEA_LOG_TABLE, (htable) -> { htable.put(put); return null; }); } }
LideaLogDAO { public void put(LideaLogBO bo) { Put put = LideaLogEntry.of(bo); hbaseTemplate.execute(Const.LIDEA_LOG_TABLE, (htable) -> { htable.put(put); return null; }); }  }
LideaLogDAO { public void put(LideaLogBO bo) { Put put = LideaLogEntry.of(bo); hbaseTemplate.execute(Const.LIDEA_LOG_TABLE, (htable) -> { htable.put(put); return null; }); }  void put(LideaLogBO bo); LideaLogResp scan(LideaLogReq req); LideaLogResp get(LideaLogReq req); }
LideaLogDAO { public void put(LideaLogBO bo) { Put put = LideaLogEntry.of(bo); hbaseTemplate.execute(Const.LIDEA_LOG_TABLE, (htable) -> { htable.put(put); return null; }); }  void put(LideaLogBO bo); LideaLogResp scan(LideaLogReq req); LideaLogResp get(LideaLogReq req);  }