test_class.declarator: logService
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private LogService logService;
test_class.type: LogService
test_class.var_name: logService
test_class.file: myth-admin/src/test/java/org/dromara/myth/admin/service/log/ZookeeperLogServiceImplTest.java
test_class.identifier: ZookeeperLogServiceImplTest
test_case.body: @Test
      public void listByPage() {
  
          ConditionQuery query = new ConditionQuery();
  
          query.setApplicationName("alipay-service");
  
          PageParameter pageParameter = new PageParameter(1, 8);
  
          query.setPageParameter(pageParameter);
  
          final CommonPager<LogVO> voCommonPager = logService.listByPage(query);
  
  
      }
test_case.class_method_signature: ZookeeperLogServiceImplTest.listByPage()
test_case.full_signature: @Test public void listByPage()
test_case.identifier: listByPage
test_case.invocations: setApplicationName setPageParameter listByPage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void listByPage()
focal_class.declarator: zooKeeper
focal_class.modifier: private final
focal_class.original_string: private final ZooKeeper zooKeeper;
focal_class.type: ZooKeeper
focal_class.var_name: zooKeeper
focal_class.declarator: objectSerializer
focal_class.modifier: private final
focal_class.original_string: private final ObjectSerializer objectSerializer;
focal_class.type: ObjectSerializer
focal_class.var_name: objectSerializer
focal_class.file: myth-admin/src/main/java/org/dromara/myth/admin/service/log/ZookeeperLogServiceImpl.java
focal_class.identifier: ZookeeperLogServiceImpl
focal_class.interfaces: implements LogService
focal_class.class_method_signature: ZookeeperLogServiceImpl.listByPage(final ConditionQuery query)
focal_class.full_signature: @Override public CommonPager<LogVO> listByPage(final ConditionQuery query)
focal_class.identifier: listByPage
focal_class.modifiers: @Override public
focal_class.parameters: (final ConditionQuery query)
focal_class.return: CommonPager<LogVO>
focal_class.signature: CommonPager<LogVO> listByPage(final ConditionQuery query)
focal_class.class_method_signature: ZookeeperLogServiceImpl.batchRemove(final List<String> ids, final String appName)
focal_class.full_signature: @Override public Boolean batchRemove(final List<String> ids, final String appName)
focal_class.identifier: batchRemove
focal_class.modifiers: @Override public
focal_class.parameters: (final List<String> ids, final String appName)
focal_class.return: Boolean
focal_class.signature: Boolean batchRemove(final List<String> ids, final String appName)
focal_class.class_method_signature: ZookeeperLogServiceImpl.updateRetry(final String id, final Integer retry, final String appName)
focal_class.full_signature: @Override public Boolean updateRetry(final String id, final Integer retry, final String appName)
focal_class.identifier: updateRetry
focal_class.modifiers: @Override public
focal_class.parameters: (final String id, final Integer retry, final String appName)
focal_class.return: Boolean
focal_class.signature: Boolean updateRetry(final String id, final Integer retry, final String appName)
focal_class.class_method_signature: ZookeeperLogServiceImpl.findAll(final List<String> zNodePaths, final String rootPath)
focal_class.full_signature: private List<LogVO> findAll(final List<String> zNodePaths, final String rootPath)
focal_class.identifier: findAll
focal_class.modifiers: private
focal_class.parameters: (final List<String> zNodePaths, final String rootPath)
focal_class.return: List<LogVO>
focal_class.signature: List<LogVO> findAll(final List<String> zNodePaths, final String rootPath)
focal_class.class_method_signature: ZookeeperLogServiceImpl.findByPage(final List<String> zNodePaths, final String rootPath,
                                     final int start, final int pageSize)
focal_class.full_signature: private List<LogVO> findByPage(final List<String> zNodePaths, final String rootPath,
                                     final int start, final int pageSize)
focal_class.identifier: findByPage
focal_class.modifiers: private
focal_class.parameters: (final List<String> zNodePaths, final String rootPath,
                                     final int start, final int pageSize)
focal_class.return: List<LogVO>
focal_class.signature: List<LogVO> findByPage(final List<String> zNodePaths, final String rootPath,
                                     final int start, final int pageSize)
focal_class.class_method_signature: ZookeeperLogServiceImpl.buildByNodePath(final String rootPath, final String zNodePath)
focal_class.full_signature: private LogVO buildByNodePath(final String rootPath, final String zNodePath)
focal_class.identifier: buildByNodePath
focal_class.modifiers: private
focal_class.parameters: (final String rootPath, final String zNodePath)
focal_class.return: LogVO
focal_class.signature: LogVO buildByNodePath(final String rootPath, final String zNodePath)
focal_method.body: @Override
      public CommonPager<LogVO> listByPage(final ConditionQuery query) {
          CommonPager<LogVO> voCommonPager = new CommonPager<>();
          final int currentPage = query.getPageParameter().getCurrentPage();
          final int pageSize = query.getPageParameter().getPageSize();
          int start = (currentPage - 1) * pageSize;
          final String rootPath =
                  RepositoryPathUtils.buildZookeeperPathPrefix(query.getApplicationName());
          List<String> zNodePaths;
          List<LogVO> voList;
          int totalCount;
          try {
              if (StringUtils.isBlank(query.getTransId())) {
                  zNodePaths = zooKeeper.getChildren(rootPath, false);
                  totalCount = zNodePaths.size();
                  voList = findByPage(zNodePaths, rootPath, start, pageSize);
              } else {
                  zNodePaths = Lists.newArrayList(query.getTransId());
                  totalCount = zNodePaths.size();
                  voList = findAll(zNodePaths, rootPath);
              }
              voCommonPager.setPage(PageHelper.buildPage(query.getPageParameter(), totalCount));
              voCommonPager.setDataList(voList);
          } catch (Exception e) {
              e.printStackTrace();
          }
          return voCommonPager;
      }
focal_method.class_method_signature: ZookeeperLogServiceImpl.listByPage(final ConditionQuery query)
focal_method.full_signature: @Override public CommonPager<LogVO> listByPage(final ConditionQuery query)
focal_method.identifier: listByPage
focal_method.invocations: getCurrentPage getPageParameter getPageSize getPageParameter buildZookeeperPathPrefix getApplicationName isBlank getTransId getChildren size findByPage newArrayList getTransId size findAll setPage buildPage getPageParameter setDataList printStackTrace
focal_method.modifiers: @Override public
focal_method.parameters: (final ConditionQuery query)
focal_method.return: CommonPager<LogVO>
focal_method.signature: CommonPager<LogVO> listByPage(final ConditionQuery query)