@Test public void scan() { LideaMethodReq req = new LideaMethodReq(); req.setAppName("cabinet-base-server"); req.setServiceName("com.fcbox.edms.terminal.api.CabinetServiceFacade"); List<LideaMethodBO> list = lideaMethodDAO.scan(req); System.out.println("=========================================================================================="); System.out.println(JSON.toJSONString(list)); }
public List<LideaMethodBO> scan(LideaMethodReq req) { Scan scan = new Scan(); scan.setCaching(50); scan.addFamily(Const.LIDEA_LOG_FEMILY); scan.setFilter(new PrefixFilter(BytesUtils.toBytes(MD5Util.encrypt(req.getAppName() + req.getServiceName())))); return hbaseTemplate.find(Const.LIDEA_METHOD_TABLE, scan, new LideaMethodResultsExtractor()); }
LideaMethodDAO { public List<LideaMethodBO> scan(LideaMethodReq req) { Scan scan = new Scan(); scan.setCaching(50); scan.addFamily(Const.LIDEA_LOG_FEMILY); scan.setFilter(new PrefixFilter(BytesUtils.toBytes(MD5Util.encrypt(req.getAppName() + req.getServiceName())))); return hbaseTemplate.find(Const.LIDEA_METHOD_TABLE, scan, new LideaMethodResultsExtractor()); } }
LideaMethodDAO { public List<LideaMethodBO> scan(LideaMethodReq req) { Scan scan = new Scan(); scan.setCaching(50); scan.addFamily(Const.LIDEA_LOG_FEMILY); scan.setFilter(new PrefixFilter(BytesUtils.toBytes(MD5Util.encrypt(req.getAppName() + req.getServiceName())))); return hbaseTemplate.find(Const.LIDEA_METHOD_TABLE, scan, new LideaMethodResultsExtractor()); }  }
LideaMethodDAO { public List<LideaMethodBO> scan(LideaMethodReq req) { Scan scan = new Scan(); scan.setCaching(50); scan.addFamily(Const.LIDEA_LOG_FEMILY); scan.setFilter(new PrefixFilter(BytesUtils.toBytes(MD5Util.encrypt(req.getAppName() + req.getServiceName())))); return hbaseTemplate.find(Const.LIDEA_METHOD_TABLE, scan, new LideaMethodResultsExtractor()); }  LideaMethodBO put(LideaMethodBO bo); List<LideaMethodBO> scan(LideaMethodReq req); LideaMethodResp get(LideaMethodReq req); }
LideaMethodDAO { public List<LideaMethodBO> scan(LideaMethodReq req) { Scan scan = new Scan(); scan.setCaching(50); scan.addFamily(Const.LIDEA_LOG_FEMILY); scan.setFilter(new PrefixFilter(BytesUtils.toBytes(MD5Util.encrypt(req.getAppName() + req.getServiceName())))); return hbaseTemplate.find(Const.LIDEA_METHOD_TABLE, scan, new LideaMethodResultsExtractor()); }  LideaMethodBO put(LideaMethodBO bo); List<LideaMethodBO> scan(LideaMethodReq req); LideaMethodResp get(LideaMethodReq req);  }