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": "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"
}
}
}
}
In this implementation,
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, updategetBooleanValue, getBooleanValue, getName, getParent, getPath, getRoot, getStringValue, getValue, nullToEmpty, nullToEmpty, nullToEmpty, setName, setParentpublic static final String KEY_NAME
public Collection<? extends AbstractKerberosDescriptorContainer> getChildContainers()
AbstractKerberosDescriptorContainergetChildContainers in class AbstractKerberosDescriptorContainerAbstractKerberosDescriptorContainerspublic AbstractKerberosDescriptorContainer getChildContainer(String name)
AbstractKerberosDescriptorContainergetChildContainer in class AbstractKerberosDescriptorContainername - the name of the child container to retrieveAbstractKerberosDescriptorContainerpublic 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 AbstractKerberosDescriptorContainertype - a String indicating the type of the requested descriptorname - a String indicating the name of the requested descriptorpublic Map<String,Object> toMap()
KerberosServiceDescriptortoMap in class AbstractKerberosDescriptorContainerKerberosServiceDescriptorpublic List<KerberosIdentityDescriptor> getComponentIdentities(String componentName)
public int hashCode()
hashCode in class AbstractKerberosDescriptorContainerpublic boolean equals(Object object)
equals in class AbstractKerberosDescriptorContainerCopyright © 2022 Apache Software Foundation. All rights reserved.