THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Element | Required | Description |
---|---|---|
name | Yes | The name of the parameterresource. This will be the resource endpoint name of the view instance. |
plural-name | No | The plural name of the resource. |
service-class | No | The JAX-RS annotated resource service class. |
id-property | No | The resource identifier. |
provider-class | No | The Ambari ResourceProvider resource class. |
resource-class | No | The JavaBean resource class. |
Code Block |
---|
<resource> <name>calculator</name> <service-class>org.apache.ambari.view.proxy.CalculatorResource</service-class> </resource> |
See the Calculator View Example to see a REST service endpoint view implementation.
Code Block |
---|
<resource> <name>city</name> <plural-name>cities</plural-name> <id-property>id</id-property> <resource-class>org.apache.ambari.view.weather.CityResource</resource-class> <provider-class>org.apache.ambari.view.weather.CityResourceProvider</provider-class> <service-class>org.apache.ambari.view.weather.CityService</service-class> </resource> |
See the Weather View Example to see an Ambari -Managed ResourceProvider view implementation..
...