ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower" <tbeerbo...@hortonworks.com>
Subject Review Request 17756: Expose Ambari config properties through View context.
Date Wed, 05 Feb 2014 21:21:14 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/17756/
-----------------------------------------------------------

Review request for Ambari, Artem Baranchuk and Nate Cole.


Bugs: AMBARI-4538
    https://issues.apache.org/jira/browse/AMBARI-4538


Repository: ambari


Description
-------

Views will need to access the Ambari configuration.  Add a method to the view context that
exposes the Ambari configuration properties.

{code}
/**
   * Get a property for the given key from the ambari configuration.
   *
   * @param key  the property key
   *
   * @return the property value; null indicates that the configuration contains no mapping
for the key
   */
  public String getAmbariProperty(String key);
{code}


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/view/ViewContextImpl.java 0106c1d 
  ambari-server/src/main/java/org/apache/ambari/server/view/ViewDefinition.java 8a60667 
  ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java a653415 
  ambari-server/src/test/java/org/apache/ambari/server/view/ViewDefinitionTest.java 5cf871e

  ambari-views/src/main/java/org/apache/ambari/view/ViewContext.java 37bf6d5 

Diff: https://reviews.apache.org/r/17756/diff/


Testing
-------

New unit test added.


Thanks,

Tom Beerbower


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message