public static Set<String> agentNodeNames(Topology topology) {
            Set<String> set = new HashSet<>();
            for (Map.Entry<String, Node> entry : topology.nodes().entrySet()) {
                if (entry.getValue().getConfig(Platform.Config.TROGDOR_AGENT_PORT) != null) {
                    set.add(entry.getKey());
                }
            }
            return set;
        }
Get the names of agent nodes in the topology.
trogdor/src/main/java/org/apache/kafka/trogdor/common/Topology.java