@Override public Resource getChild(PathElement element) { Resource result = null; if (!isMaster() && IGNORED_RESOURCE_TYPE.equals(element.getKey())) { result = getChildInternal(element.getValue()); } return result; }
@Override public Resource getChild(PathElement element) { Resource result = null; if (!isMaster() && IGNORED_RESOURCE_TYPE.equals(element.getKey())) { result = getChildInternal(element.getValue()); } return result; }
@Override public Resource getChild(PathElement element) { Resource result = null; if (!isMaster() && IGNORED_RESOURCE_TYPE.equals(element.getKey())) { result = getChildInternal(element.getValue()); } return result; }
/** * Returns whether this host should ignore operations from the master domain controller that target * the given address. * * @param address the resource address. Cannot be {@code null} * * @return {@code true} if the operation should be ignored; {@code false} otherwise */ public boolean isResourceExcluded(final PathAddress address) { boolean result = false; if (!localHostControllerInfo.isMasterDomainController() && address.size() > 0) { IgnoredDomainResourceRoot root = this.rootResource; PathElement firstElement = address.getElement(0); IgnoreDomainResourceTypeResource typeResource = root == null ? null : root.getChildInternal(firstElement.getKey()); if (typeResource != null) { result = typeResource.hasName(firstElement.getValue()); } } return result; }
/** * Returns whether this host should ignore operations from the master domain controller that target * the given address. * * @param address the resource address. Cannot be {@code null} * * @return {@code true} if the operation should be ignored; {@code false} otherwise */ public boolean isResourceExcluded(final PathAddress address) { if (!localHostControllerInfo.isMasterDomainController() && address.size() > 0) { IgnoredDomainResourceRoot root = this.rootResource; PathElement firstElement = address.getElement(0); IgnoreDomainResourceTypeResource typeResource = root == null ? null : root.getChildInternal(firstElement.getKey()); if (typeResource != null) { if (typeResource.hasName(firstElement.getValue())) { return true; } } } return false; }
/** * Returns whether this host should ignore operations from the master domain controller that target * the given address. * * @param address the resource address. Cannot be {@code null} * * @return {@code true} if the operation should be ignored; {@code false} otherwise */ public boolean isResourceExcluded(final PathAddress address) { if (!localHostControllerInfo.isMasterDomainController() && address.size() > 0) { IgnoredDomainResourceRoot root = this.rootResource; PathElement firstElement = address.getElement(0); IgnoreDomainResourceTypeResource typeResource = root == null ? null : root.getChildInternal(firstElement.getKey()); if (typeResource != null) { if (typeResource.hasName(firstElement.getValue())) { return true; } } } return false; }