Jayush Luniya 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ
..
auto-cluster-view d67270f67f AMBARI-14346: Add parent tag to ambari-metrics/pom.xml (jluniya) 9 gadi atpakaļ
calculator-view 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ
cluster-view 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ
favorite-view 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ
hello-servlet-view 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ
hello-spring-view 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ
helloworld-view 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ
phone-list-upgrade-view 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ
phone-list-view 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ
property-validator-view 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ
property-view 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ
restricted-view 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ
simple-view 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ
weather-view 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ
README.md 614b12fc38 AMBARI-15919. Migrate instance specific data from one version to another. (Gaurav Nagar via dipayanb) 9 gadi atpakaļ
pom.xml 8ac653f9a6 Create branch-2.5 (jluniya) 9 gadi atpakaļ

README.md

Ambari Views Examples

The Ambari Views Examples are a collection of simple Ambari Views provided as a development guide.

Documentation

See the documentation pages for the view examples.

  • Hello World View : Demonstrates the very basics of how to write and deploy a view in Ambari.
  • Hello Servlet View : Includes instance parameters and a servlet for a dynamic UI.
  • Hello Spring View : A very simple view example that uses Spring MVC.
  • Favorite view : Exposes a simple resource to work with instance parameters and data.
  • Calculator View : Includes a simple resource.
  • Phone List View : Demonstrates simple view persistence.
  • Phone List Upgrade View : Demonstrates view data migration from Phone List View.
  • Property View : Demonstrates view configuration property options.
  • Property Validator View : Demonstrates configuration property validator.
  • Weather view : Demonstrates the the use of instance parameters, a servlet for a dynamic UI and a managed resource.
  • Auto Cluster view : Example view that can be auto-created and configured to leverage the Ambari REST APIs to access a cluster being managed by Ambari.

Please also visit the Apache Ambari Project page for more information.

License

Ambari is released under Apache License, Version 2.0.

Issue Tracking

Report any issues via the Ambari JIRA.

Build

####Examples

######Requirements

  • JDK 1.6
  • Maven 3.0

######Maven modules

  • ambari-views (ambari view interfaces)

######Maven build goals

  • Clean : mvn clean
  • Compile : mvn compile
  • Run tests : mvn test
  • Create JARS : mvn package
  • Install JARS in M2 cache : mvn install

######Tests options

  • -DskipTests to skip tests when running the following Maven goals: 'package', 'install', 'deploy' or 'verify'
  • -Dtest=<TESTCLASSNAME>,<TESTCLASSNAME#METHODNAME>,....
  • -Dtest.exclude=<TESTCLASSNAME>
  • -Dtest.exclude.pattern=**/<TESTCLASSNAME1>.java,**/<TESTCLASSNAME2>.java