public Set getAllOtherMembers() { Set result = new HashSet(getDistributionManagerIdsIncludingAdmin()); result.remove(getDistributionManagerId()); return result; }
public Set<DistributedMember> getGroupMembers(String group) { HashSet<DistributedMember> result = null; for (DistributedMember m: (Set<DistributedMember>)getDistributionManagerIdsIncludingAdmin()) { if (m.getGroups().contains(group)) { if (result == null) { result = new HashSet<DistributedMember>(); } result.add(m); } } if (result == null) { return Collections.emptySet(); } else { return result; } }
public Set getAllOtherMembers() { Set result = new THashSet(getDistributionManagerIdsIncludingAdmin()); result.remove(getDistributionManagerId()); return result; }
public Set<DistributedMember> getGroupMembers(String group) { Set<DistributedMember> result = null; for (DistributedMember m: (Set<DistributedMember>)getDistributionManagerIdsIncludingAdmin()) { if (m.getGroups().contains(group)) { if (result == null) { result = new THashSet(); } result.add(m); } } if (result == null) { return Collections.emptySet(); } else { return result; } }
public boolean isRunning() { DM dm = ((AdminDistributedSystemImpl)getDistributedSystem()).getDistributionManager(); if(dm == null) { try { return this.controller.isRunning(this); } catch (IllegalStateException e) { return false; } } return ((DistributionManager)dm).getDistributionManagerIdsIncludingAdmin().contains(getDistributedMember()); }
public boolean isRunning() { DM dm = ((AdminDistributedSystemImpl)getDistributedSystem()).getDistributionManager(); if(dm == null) { try { return this.controller.isRunning(this); } catch (IllegalStateException e) { return false; } } return ((DistributionManager)dm).getDistributionManagerIdsIncludingAdmin().contains(getDistributedMember()); }