code: public static List<String> getAllUserStoreNamesOnNode(AdminClient adminClient, Integer nodeId) {
          List<String> storeNames = Lists.newArrayList();
          List<StoreDefinition> storeDefinitionList = adminClient.metadataMgmtOps.getRemoteStoreDefList(nodeId)
                                                                                 .getValue();
  
          for(StoreDefinition storeDefinition: storeDefinitionList) {
              storeNames.add(storeDefinition.getName());
          }
          return storeNames;
      }
docs: Utility function that fetches all stores on a node.
  
  @param adminClient An instance of AdminClient points to given cluster
  @param nodeId Node id to fetch stores from
  @return List of all store names