You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The following describes the syntax of the View Definition (view.xml) file as part of the View Package.

<view>

The <view> element is the enclosing element in the Definition File. The following table describes the elements you can include in the <view> element:

ElementRequiredDescription
nameYesThe name of the view. See <name> for more information.
labelYesThe label of the view. See <label> for more information.
versionYesThe version of the view. See <version> for more information.
parameterNoDefines a configuration parameter that is used to when creating a view instance. See <parameter> for more information.
resourceNoDefines a resource that is exposed by the view. See <resource> for more information.

<name>

The name of the view. Example:

<name>MY_COOL_VIEW</name>

<label>

The label of the view. Example:

<label>My Cool View</label>

<version>

The version of the view. Example:

<version>0.1.0</version>

<parameter>

ElementRequiredDescription
nameYesThe name of the parameter. See <parameter><name> for more information.
descriptionYesThe description of the parameter. See <parameter><description> for more information.
requiredYesIf true, the parameter is required in order to create a view instance. See <parameter><required> for more information.

<parameter>

    <name>clusterIds</name>

    <description>A comma-separated list of cluster IDs</description>

    <required>false</required>

</parameter>

<parameter><name>

TBD

<resource>

TBD

  <resource>

    <name>clusters</name>

    <service-class>org.apache.ambari.view.clustermanager.ClustersService</service-class>

  </resource>

 

 

  • No labels