/** * Whether the host should ignore the domain resource * * @param domainResource the root domain resource * @param the address to check * @return {@code true} if we are to ignore the resource */ @Override public boolean ignoreResource(Resource domainResource, PathAddress address) { if (address.size() != 1) { return false; } if (hostInfo.isIgnoreUnaffectedConfig()) { if (knownRootAddresses != null && address.size() >= 0 && knownRootAddresses.contains(address.getElement(0))) { return false; } return util.ignoreResource(domainResource, hostInfo.getServerConfigInfos(), address); } return false; }
/** * Whether the slave host is set up to ignore unaffected config * * @return {@code true} if the slave is set up to ignore unaffected config */ boolean isIgnoreUnaffactedConfig() { return hostInfo.isIgnoreUnaffectedConfig(); }
/** * Add/update a server config info * * @param serverInfo the server config info */ void updateSlaveServerConfig(ServerConfigInfo serverInfo) { if (hostInfo.isIgnoreUnaffectedConfig()) { hostInfo.updateSlaveServerConfigInfo(serverInfo); } }