public class KerberosServiceDescriptor extends AbstractKerberosDescriptorContainer
AbstractKerberosDescriptorContainer
)AbstractKerberosDescriptorContainer
){ "$schema": "http://json-schema.org/draft-04/schema#", "title": "KerberosServiceDescriptor", "description": "Describes an Ambari service", "type": "object", "preconfigure": "boolean", "properties": { "name": { "description": "An identifying name for this service descriptor.", "type": "string" }, "components": { "description": "A list of Ambari component descriptors", "type": "array", "items": { "title": "KerberosComponentDescriptor" "type": "In this implementation,KerberosComponentDescriptor
" } }, "identities": { "description": "A list of Kerberos identity descriptors", "type": "array", "items": { "title": "KerberosIdentityDescriptor" "type": "KerberosIdentityDescriptor
" } }, "configurations": { "description": "A list of relevant configuration blocks", "type": "array", "items": { "title": "KerberosConfigurationDescriptor" "type": "KerberosConfigurationDescriptor
" } } } }
AbstractKerberosDescriptor.name
will hold the
KerberosServiceDescriptor#name value.AbstractKerberosDescriptor.Type
Modifier and Type | Field and Description |
---|---|
static String |
KEY_NAME |
AUTH_TO_LOCAL_PROPERTY_SPECIFICATION_PATTERN
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
AbstractKerberosDescriptorContainer |
getChildContainer(String name)
Returns a specific named child container
|
Collection<? extends AbstractKerberosDescriptorContainer> |
getChildContainers()
Returns the child containers associated with this container.
|
KerberosComponentDescriptor |
getComponent(String name)
Returns the KerberosComponentDescriptors with the specified name
|
List<KerberosIdentityDescriptor> |
getComponentIdentities(String componentName) |
Map<String,KerberosComponentDescriptor> |
getComponents()
Returns a Map of the KerberosComponentDescriptors related to this KerberosServiceDescriptor
|
protected AbstractKerberosDescriptor |
getDescriptor(AbstractKerberosDescriptor.Type type,
String name)
Gets the requested AbstractKerberosDescriptor implementation using a type name and a relevant
descriptor name.
|
int |
hashCode() |
void |
putComponent(KerberosComponentDescriptor component)
Adds or replaces a KerberosComponentDescriptor
If a KerberosComponentDescriptor with the same name already exists in the components Map, it
will be replaced; else a new entry will be made.
|
void |
setPreconfigure(Boolean preconfigure)
Sets whether this service should be preconfigured when determining configurations or not.
|
boolean |
shouldPreconfigure()
Indicate whether this service should be preconfigured when determining configurations.
|
Map<String,Object> |
toMap()
Creates a Map of values that can be used to create a copy of this KerberosServiceDescriptor
or generate the JSON structure described in
KerberosServiceDescriptor |
void |
update(KerberosServiceDescriptor updates)
Updates this KerberosServiceDescriptor with data from another KerberosServiceDescriptor
Properties will be updated if the relevant updated values are not null.
|
getAuthToLocalProperties, getConfiguration, getConfigurations, getConfigurations, getIdentities, getIdentities, getIdentitiesSkipReferences, getIdentity, getReferencedIdentityDescriptor, isContainer, putAuthToLocalProperty, putConfiguration, putIdentity, removeIdentity, setAuthToLocalProperties, setConfigurations, setIdentities, update
getBooleanValue, getBooleanValue, getName, getParent, getPath, getRoot, getStringValue, getValue, nullToEmpty, nullToEmpty, nullToEmpty, setName, setParent
public static final String KEY_NAME
public Collection<? extends AbstractKerberosDescriptorContainer> getChildContainers()
AbstractKerberosDescriptorContainer
getChildContainers
in class AbstractKerberosDescriptorContainer
AbstractKerberosDescriptorContainer
spublic AbstractKerberosDescriptorContainer getChildContainer(String name)
AbstractKerberosDescriptorContainer
getChildContainer
in class AbstractKerberosDescriptorContainer
name
- the name of the child container to retrieveAbstractKerberosDescriptorContainer
public Map<String,KerberosComponentDescriptor> getComponents()
public KerberosComponentDescriptor getComponent(String name)
name
- the name of the component for which to retrieve a descriptorpublic void putComponent(KerberosComponentDescriptor component)
component
- the KerberosComponentDescriptor to putpublic void update(KerberosServiceDescriptor updates)
updates
- the KerberosServiceDescriptor containing the updated valuespublic boolean shouldPreconfigure()
public void setPreconfigure(Boolean preconfigure)
preconfigure
- true, to preconfigure; false, otherwiseprotected AbstractKerberosDescriptor getDescriptor(AbstractKerberosDescriptor.Type type, String name)
getDescriptor
in class AbstractKerberosDescriptorContainer
type
- a String indicating the type of the requested descriptorname
- a String indicating the name of the requested descriptorpublic Map<String,Object> toMap()
KerberosServiceDescriptor
toMap
in class AbstractKerberosDescriptorContainer
KerberosServiceDescriptor
public List<KerberosIdentityDescriptor> getComponentIdentities(String componentName)
public int hashCode()
hashCode
in class AbstractKerberosDescriptorContainer
public boolean equals(Object object)
equals
in class AbstractKerberosDescriptorContainer
Copyright © 2022 Apache Software Foundation. All rights reserved.