public class RemovableIdentities extends Object
| Modifier and Type | Method and Description |
|---|---|
static RemovableIdentities |
none()
Populates the identities with an empty list
|
static RemovableIdentities |
ofComponent(Cluster cluster,
ServiceComponentUninstalledEvent event,
KerberosHelper kerberosHelper)
Populate the identities with the identities of the removed component
|
static RemovableIdentities |
ofService(Cluster cluster,
ServiceRemovedEvent event,
KerberosHelper kerberosHelper)
Populate the identities with the identities of the removed service and its components
|
void |
remove(KerberosHelper kerberosHelper)
Remove all identities which are related to the specified set of components and not used by
other services or components
|
public static RemovableIdentities ofService(Cluster cluster, ServiceRemovedEvent event, KerberosHelper kerberosHelper) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionpublic static RemovableIdentities ofComponent(Cluster cluster, ServiceComponentUninstalledEvent event, KerberosHelper kerberosHelper) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionpublic static RemovableIdentities none() throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionpublic void remove(KerberosHelper kerberosHelper) throws org.apache.ambari.server.AmbariException, KerberosOperationException
org.apache.ambari.server.AmbariExceptionKerberosOperationExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.