public List<TDataNodeConfiguration> filterDataNodeThroughStatus(
      Function<NodeStatus, Boolean> statusPredicate) {
    return nodeInfo.getRegisteredDataNodes(
        getLoadManager().filterDataNodeThroughStatus(statusPredicate));
  }
Filter DataNodes through the NodeStatus predicate.

@param statusPredicate The NodeStatus predicate
@return Filtered DataNodes with the predicate
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/node/NodeManager.java