@Test public void testQuerListProject() { List<String> projects = aliyunLogManageServiceImpl.queryListProject(); System.err.println("Projects:" + projects.toString() + "\n"); }
private List<Project> queryListProject(String project) { Client client = aliyunLogService.acqClient(); int offset = 0; int size = 100; String logStoreSubName = ""; ListProjectRequest req = new ListProjectRequest(project, offset, size); List<Project> projects = new ArrayList<>(); try { projects = client.ListProject(req).getProjects(); } catch (LogException lg) { } return projects; }
AliyunLogManageServiceImpl implements AliyunLogManageService { private List<Project> queryListProject(String project) { Client client = aliyunLogService.acqClient(); int offset = 0; int size = 100; String logStoreSubName = ""; ListProjectRequest req = new ListProjectRequest(project, offset, size); List<Project> projects = new ArrayList<>(); try { projects = client.ListProject(req).getProjects(); } catch (LogException lg) { } return projects; } }
AliyunLogManageServiceImpl implements AliyunLogManageService { private List<Project> queryListProject(String project) { Client client = aliyunLogService.acqClient(); int offset = 0; int size = 100; String logStoreSubName = ""; ListProjectRequest req = new ListProjectRequest(project, offset, size); List<Project> projects = new ArrayList<>(); try { projects = client.ListProject(req).getProjects(); } catch (LogException lg) { } return projects; }  }
AliyunLogManageServiceImpl implements AliyunLogManageService { private List<Project> queryListProject(String project) { Client client = aliyunLogService.acqClient(); int offset = 0; int size = 100; String logStoreSubName = ""; ListProjectRequest req = new ListProjectRequest(project, offset, size); List<Project> projects = new ArrayList<>(); try { projects = client.ListProject(req).getProjects(); } catch (LogException lg) { } return projects; }  @Override List<String> queryListProject(); @Override List<String> queryListLogStores(String project); @Override List<String> queryListMachineGroup(String project, String groupName); @Override MachineGroup getMachineGroup(String project, String groupName); @Override MachineGroupVO getMachineGroupVO(String project, String groupName); boolean updateMachineGroup(LogServiceServerGroupCfgVO cfgVO); boolean addMachineGroup(LogServiceServerGroupCfgVO cfgVO); @Override BusinessWrapper<Boolean> saveServerGroupCfg(LogServiceServerGroupCfgVO cfgVO); @Override LogServiceStatusVO logServiceStatus(); }
AliyunLogManageServiceImpl implements AliyunLogManageService { private List<Project> queryListProject(String project) { Client client = aliyunLogService.acqClient(); int offset = 0; int size = 100; String logStoreSubName = ""; ListProjectRequest req = new ListProjectRequest(project, offset, size); List<Project> projects = new ArrayList<>(); try { projects = client.ListProject(req).getProjects(); } catch (LogException lg) { } return projects; }  @Override List<String> queryListProject(); @Override List<String> queryListLogStores(String project); @Override List<String> queryListMachineGroup(String project, String groupName); @Override MachineGroup getMachineGroup(String project, String groupName); @Override MachineGroupVO getMachineGroupVO(String project, String groupName); boolean updateMachineGroup(LogServiceServerGroupCfgVO cfgVO); boolean addMachineGroup(LogServiceServerGroupCfgVO cfgVO); @Override BusinessWrapper<Boolean> saveServerGroupCfg(LogServiceServerGroupCfgVO cfgVO); @Override LogServiceStatusVO logServiceStatus(); static final String LOG_SERVICE_CONFIG_NAME; }