public class Extension extends Object
Constructor and Description |
---|
Extension(ExtensionEntity extension,
AmbariManagementController ambariManagementController)
Constructor.
|
Extension(String name,
String version,
AmbariManagementController controller)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AutoDeployInfo |
getAutoDeployInfo(String component)
Obtain auto-deploy information for the specified component.
|
Cardinality |
getCardinality(String component)
Obtain the required cardinality for the specified component.
|
ComponentInfo |
getComponentInfo(String component)
Get info for the specified component.
|
Map<String,Collection<String>> |
getComponents()
Get all service components
|
Collection<String> |
getComponents(String service)
Get components contained in the extension for the specified service.
|
String |
getConditionalServiceForDependency(DependencyInfo dependency)
Get the service, if any, that a component dependency is conditional on.
|
Collection<DependencyInfo> |
getDependenciesForComponent(String component)
Return the dependencies specified for the given component.
|
String |
getExternalComponentConfig(String component) |
String |
getName()
Obtain extension name.
|
String |
getServiceForComponent(String component)
Get the service for the specified component.
|
Collection<String> |
getServices()
Get services contained in the extension.
|
Collection<String> |
getServicesForComponents(Collection<String> components)
Get the names of the services which contains the specified components.
|
String |
getVersion()
Obtain extension version.
|
public Extension(ExtensionEntity extension, AmbariManagementController ambariManagementController) throws org.apache.ambari.server.AmbariException
extension
- the extension (not null
).ambariManagementController
- the management controller (not null
).org.apache.ambari.server.AmbariException
public Extension(String name, String version, AmbariManagementController controller) throws org.apache.ambari.server.AmbariException
name
- extension nameversion
- extension versionorg.apache.ambari.server.AmbariException
- an exception occurred getting extension information
for the specified name and versionpublic String getName()
public String getVersion()
public Collection<String> getServices()
public Collection<String> getComponents(String service)
service
- service namepublic Map<String,Collection<String>> getComponents()
public ComponentInfo getComponentInfo(String component)
component
- component namepublic String getServiceForComponent(String component)
component
- component namepublic Collection<String> getServicesForComponents(Collection<String> components)
components
- collection of componentspublic Collection<DependencyInfo> getDependenciesForComponent(String component)
component
- component to get dependency information forpublic String getConditionalServiceForDependency(DependencyInfo dependency)
dependency
- dependency to get conditional service forpublic Cardinality getCardinality(String component)
public AutoDeployInfo getAutoDeployInfo(String component)
Copyright © 2022 Apache Software Foundation. All rights reserved.