Hi,

Is there a direct way of doing $subject other than iterating through all
the services from topology.getServices()?

Service memberService = null;
for (Service service: topology.getServices()){
    Cluster cluster = service.getCluster(clusterId);
    if (cluster != null) {
        if (cluster.getMember(memberId) != null){
            memberService = service;
            break;
        }
    }}



Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com

Reply via email to