public class ViewConfig extends Object
Constructor and Description |
---|
ViewConfig() |
Modifier and Type | Method and Description |
---|---|
AutoInstanceConfig |
getAutoInstance()
Get the configuration for the view instance auto create.
|
String |
getBuild()
Get the view build number.
|
String |
getClusterConfigOptions()
Enables views to display cluster options in case of no cluster config properties
|
String |
getDataMigrator()
Get the view class name.
|
Class<? extends org.apache.ambari.view.migration.ViewDataMigrator> |
getDataMigratorClass(ClassLoader cl)
Get the view class.
|
int |
getDataVersion()
Get the view data version.
|
String |
getDescription()
Get the view description.
|
String |
getExtraClasspath()
Get the extra classpath as a comma separated path of filenames or URLs pointing to
directories or jar files.
|
String |
getIcon()
Get the icon path in the view archive.
|
String |
getIcon64()
Get the big icon path in the view archive.
|
List<InstanceConfig> |
getInstances()
Get the list of view instances.
|
String |
getLabel()
Get the public view name.
|
String |
getMasker()
Get the masker class name.
|
Class<? extends org.apache.ambari.view.Masker> |
getMaskerClass(ClassLoader cl)
Get the masker class.
|
String |
getMaxAmbariVersion()
Get the maximum version of Ambari that can run this view.
|
String |
getMinAmbariVersion()
Get the minimum version of Ambari required to run this view.
|
String |
getName()
Get the unique name.
|
List<ParameterConfig> |
getParameters()
Get the list of view parameters.
|
List<PermissionConfig> |
getPermissions()
Get the list of custom permissions defined for the view.
|
PersistenceConfig |
getPersistence()
Get the view persistence configuration.
|
List<ResourceConfig> |
getResources()
Get the list of view resources.
|
String |
getValidator()
Get the view validator class name.
|
Class<? extends org.apache.ambari.view.validation.Validator> |
getValidatorClass(ClassLoader cl)
Get the view validator class.
|
String |
getVersion()
Get the view version.
|
String |
getView()
Get the view class name.
|
Class<? extends org.apache.ambari.view.View> |
getViewClass(ClassLoader cl)
Get the view class.
|
boolean |
isSystem()
Determine whether or not this is a system view.
|
public String getName()
public String getLabel()
public String getDescription()
public String getVersion()
public String getBuild()
public String getMinAmbariVersion()
public String getMaxAmbariVersion()
public String getIcon()
public String getIcon64()
public boolean isSystem()
public String getExtraClasspath()
public String getView()
public Class<? extends org.apache.ambari.view.View> getViewClass(ClassLoader cl) throws ClassNotFoundException
cl
- the class loaderClassNotFoundException
- if the class can not be loadedpublic String getDataMigrator()
public Class<? extends org.apache.ambari.view.migration.ViewDataMigrator> getDataMigratorClass(ClassLoader cl) throws ClassNotFoundException
cl
- the class loaderClassNotFoundException
- if the class can not be loadedpublic int getDataVersion()
public String getValidator()
public Class<? extends org.apache.ambari.view.validation.Validator> getValidatorClass(ClassLoader cl) throws ClassNotFoundException
cl
- the class loaderClassNotFoundException
- if the class can not be loadedpublic String getMasker()
public Class<? extends org.apache.ambari.view.Masker> getMaskerClass(ClassLoader cl) throws ClassNotFoundException
cl
- the class loaderClassNotFoundException
- if the class can not be loadedpublic List<ParameterConfig> getParameters()
public List<ResourceConfig> getResources()
public AutoInstanceConfig getAutoInstance()
public List<InstanceConfig> getInstances()
public PersistenceConfig getPersistence()
public List<PermissionConfig> getPermissions()
public String getClusterConfigOptions()
Copyright © 2022 Apache Software Foundation. All rights reserved.