Package | Description |
---|---|
org.apache.ambari.server.controller.internal | |
org.apache.ambari.server.orm.dao | |
org.apache.ambari.server.orm.entities | |
org.apache.ambari.server.view |
Modifier and Type | Method and Description |
---|---|
ViewVersionResponse |
ViewVersionResourceProvider.getResponse(ViewEntity viewDefinition)
Returns response schema instance for view version REST endpoint: /views/{viewName}/versions
|
Modifier and Type | Method and Description |
---|---|
ViewEntity |
ViewDAO.findByName(String viewName)
Find a view with a given name.
|
ViewEntity |
ViewDAO.merge(ViewEntity ViewEntity)
Merge the state of the given entity into the current persistence context.
|
Modifier and Type | Method and Description |
---|---|
List<ViewEntity> |
ViewDAO.findAll()
Find all views.
|
List<ViewEntity> |
ViewDAO.findByCommonName(String viewCommonName)
Find a view with a given common name.
|
Modifier and Type | Method and Description |
---|---|
void |
ViewDAO.create(ViewEntity ViewEntity)
Make an instance managed and persistent.
|
ViewEntity |
ViewDAO.merge(ViewEntity ViewEntity)
Merge the state of the given entity into the current persistence context.
|
void |
ViewDAO.refresh(ViewEntity ViewEntity)
Refresh the state of the instance from the database,
overwriting changes made to the entity, if any.
|
void |
ViewDAO.remove(ViewEntity ViewEntity)
Remove the entity instance.
|
Modifier and Type | Method and Description |
---|---|
ViewEntity |
ViewResourceEntity.getViewEntity()
Get the parent view entity.
|
ViewEntity |
ViewInstanceEntity.getViewEntity()
Get the parent view entity.
|
ViewEntity |
ViewParameterEntity.getViewEntity()
Get the associated view entity.
|
Modifier and Type | Method and Description |
---|---|
InstanceValidationResultImpl |
ViewInstanceEntity.getValidationResult(ViewEntity viewEntity,
org.apache.ambari.view.validation.Validator.ValidationContext context)
Get the validation the state of the instance.
|
void |
ViewResourceEntity.setViewEntity(ViewEntity view)
Set the parent view entity.
|
void |
ViewInstanceEntity.setViewEntity(ViewEntity view)
Set the parent view entity.
|
void |
ViewParameterEntity.setViewEntity(ViewEntity view)
Set the associated view entity.
|
void |
ViewInstanceEntity.validate(ViewEntity viewEntity,
org.apache.ambari.view.validation.Validator.ValidationContext context)
Validate the state of the instance.
|
Constructor and Description |
---|
ViewInstanceEntity(ViewEntity view,
InstanceConfig instanceConfig)
Construct a view instance definition.
|
ViewInstanceEntity(ViewEntity view,
String name)
Construct a view instance definition.
|
ViewInstanceEntity(ViewEntity view,
String name,
String label)
Construct a view instance definition.
|
Modifier and Type | Method and Description |
---|---|
ViewEntity |
ViewRegistry.getDefinition(ResourceTypeEntity resourceTypeEntity)
Get the view definition for the given resource type.
|
ViewEntity |
ViewRegistry.getDefinition(String viewName,
String version)
Get a view definition for the given name.
|
protected ViewEntity |
ViewRegistry.setupViewDefinition(ViewEntity viewDefinition,
ClassLoader cl) |
Modifier and Type | Method and Description |
---|---|
Collection<ViewEntity> |
ViewRegistry.getDefinitions()
Get the collection of all the view definitions.
|
Modifier and Type | Method and Description |
---|---|
void |
ViewRegistry.addDefinition(ViewEntity definition)
Add a view definition to the registry.
|
void |
ViewRegistry.addInstanceDefinition(ViewEntity definition,
ViewInstanceEntity instanceDefinition)
Add an instance definition for the given view definition.
|
protected void |
ViewRegistry.bindViewInstance(ViewEntity viewDefinition,
ViewInstanceEntity viewInstanceDefinition) |
protected boolean |
ViewRegistry.checkViewVersions(ViewEntity view,
String serverVersion)
Check the configured view max and min Ambari versions for the given view entity
against the given Ambari server version.
|
protected ViewInstanceEntity |
ViewRegistry.createViewInstanceDefinition(ViewConfig viewConfig,
ViewEntity viewDefinition,
InstanceConfig instanceConfig) |
ClassLoader |
ViewExtractor.extractViewArchive(ViewEntity view,
File viewArchive,
File archiveDir,
List<File> viewsAdditionalClasspath)
Extract the given view archive to the given archive directory.
|
Collection<ViewInstanceEntity> |
ViewRegistry.getInstanceDefinitions(ViewEntity definition)
Get the collection of view instances for the given view definition.
|
boolean |
ViewRegistry.includeDefinition(ViewEntity definitionEntity)
Determine whether or not the given view definition resource should be included
based on the permissions granted to the current user.
|
protected void |
ViewRegistry.onDeploy(ViewEntity definition) |
void |
ViewRegistry.removeInstanceDefinition(ViewEntity definition,
String instanceName)
Remove an instance definition for the given view definition.
|
protected ViewEntity |
ViewRegistry.setupViewDefinition(ViewEntity viewDefinition,
ClassLoader cl) |
Constructor and Description |
---|
ViewContextImpl(ViewEntity viewEntity,
ViewRegistry viewRegistry)
Construct a view context from the given view entity.
|
ViewExternalSubResourceProvider(Resource.Type type,
ViewEntity viewDefinition)
Construct a view sub-resource provider.
|
ViewSubResourceDefinition(ViewEntity viewDefinition,
ResourceConfig resourceConfiguration)
Construct a sub-resource definition.
|
ViewSubResourceProvider(Resource.Type type,
Class<?> clazz,
String pkField,
ViewEntity viewDefinition)
Construct a view resource provider for the given resource type and bean class.
|
Copyright © 2022 Apache Software Foundation. All rights reserved.