@Singleton public class ResourceProviderAdapter extends Object
AddServiceInfo
to internal requests accepted by those.Constructor and Description |
---|
ResourceProviderAdapter() |
public void createServices(AddServiceInfo request)
public void createComponents(AddServiceInfo request)
public void createHostComponents(AddServiceInfo request)
public void createConfigs(AddServiceInfo request)
public void createCredentials(AddServiceInfo request)
public Optional<KerberosDescriptor> getKerberosDescriptor(AddServiceInfo request)
Optional
with the cluster's kerberos descriptor artifact if it exists, otherwise empty Optional
public void createKerberosDescriptor(AddServiceInfo request, KerberosDescriptor descriptor)
public void updateKerberosDescriptor(AddServiceInfo request, KerberosDescriptor descriptor)
public void updateExistingConfigs(AddServiceInfo request, Set<String> existingServices)
public void updateServiceDesiredState(AddServiceInfo request, State desiredState)
public void updateHostComponentDesiredState(AddServiceInfo request, Predicate predicate, ProvisionStep step)
public static Map<String,String> requestInfoForKerberosDescriptor(KerberosDescriptor descriptor)
public static Map<String,Object> createCredentialRequestProperties(String clusterName, Credential credential)
public static Map<String,Object> createKerberosDescriptorRequestProperties(String clusterName)
Copyright © 2022 Apache Software Foundation. All rights reserved.