public static interface MaintenanceStateHelper.HostPredicate
MaintenanceStateHelper.HostPredicate interaface is used as a way to pass a custom
implementation into one of the many
MaintenanceStateHelper.isOperationAllowed(org.apache.ambari.server.controller.spi.Resource.Type, Service)
methods.| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldHostBeRemoved(String hostname)
Gets whether the specified host should not be included in a result set.
|
boolean shouldHostBeRemoved(String hostname) throws org.apache.ambari.server.AmbariException
hostname - the host (not null).true to indicate that the specified host is not a valid
choice, false otherwise.org.apache.ambari.server.AmbariExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.