/** * {@inheritDoc} */ @Override public boolean execute(Object o) { final HostAddress hostAddr = (HostAddress)o; if (this.keepLocators) { if (hostAddr.getServerType().isThriftLocator()) { this.outServers.add(hostAddr); } } if (this.keepServers) { if (hostAddr.getServerType().isThriftGFXD()) { this.outServers.add(hostAddr); } } return true; } }
/** * {@inheritDoc} */ @Override public boolean execute(Object o) { final HostAddress hostAddr = (HostAddress)o; if (this.keepLocators) { if (hostAddr.getServerType().isThriftLocator()) { this.outServers.add(hostAddr); } } if (this.keepServers) { if (hostAddr.getServerType().isThriftGFXD()) { this.outServers.add(hostAddr); } } return true; } }