ambari git commit: AMBARI-19244. Create profile evaluator. (Balazs Bence Sari via stoader)

2016-12-23 Thread stoader
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 972b23fe2 -> 050caf012


AMBARI-19244. Create profile evaluator. (Balazs Bence Sari via stoader)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/050caf01
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/050caf01
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/050caf01

Branch: refs/heads/branch-2.5
Commit: 050caf012fffa6101a23ae2c1f18a9c6cc1fd8f7
Parents: 972b23f
Author: Balazs Bence Sari 
Authored: Fri Dec 23 22:15:18 2016 +0100
Committer: Toader, Sebastian 
Committed: Fri Dec 23 22:16:55 2016 +0100

--
 .../ambari/server/state/quicklinks/Link.java|  16 +-
 .../quicklinksprofile/AcceptAllFilter.java  |   2 +-
 .../state/quicklinksprofile/Component.java  |   7 +
 .../server/state/quicklinksprofile/Filter.java  |  10 +-
 .../quicklinksprofile/LinkAttributeFilter.java  |  61 ++
 .../state/quicklinksprofile/PropertyFilter.java |  60 --
 .../quicklinksprofile/QuickLinksProfile.java|   7 +
 .../QuickLinksProfileEvaluator.java | 202 ++
 .../QuickLinksProfileEvaluatorException.java|  27 +++
 .../QuickLinksProfileParser.java|  10 +-
 .../server/state/quicklinksprofile/Service.java |   8 +
 .../QuickLinksConfigurationModuleTest.java  |  10 +-
 .../state/quicklinksprofile/EvaluatorTest.java  | 203 +++
 .../QuickLinksProfileEvaluatorTest.java | 168 +++
 .../QuickLinksProfileParserTest.java|   4 +-
 .../child_quicklinks_with_attributes.json   |  64 ++
 .../child_quicklinks_with_properties.json   |  64 --
 .../resources/example_quicklinks_profile.json   |   4 +-
 .../inconsistent_quicklinks_profile.json|   2 +-
 .../parent_quicklinks_with_attributes.json  |  65 ++
 .../parent_quicklinks_with_properties.json  |  65 --
 21 files changed, 841 insertions(+), 218 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/050caf01/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
--
diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
index f7c14f3..c26eda9 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
@@ -51,8 +51,8 @@ public class Link{
   @JsonProperty("protocol")
   private Protocol protocol;
 
-  @JsonProperty("properties")
-  private List properties;
+  @JsonProperty("attributes")
+  private List attributes;
 
   public String getName() {
 return name;
@@ -111,12 +111,12 @@ public class Link{
   }
 
   @Nullable
-  public List getProperties() {
-return properties;
+  public List getAttributes() {
+return attributes;
   }
 
-  public void setProperties(List properties) {
-this.properties = properties;
+  public void setAttributes(List attributes) {
+this.attributes = attributes;
   }
 
   public boolean isRemoved(){
@@ -149,8 +149,8 @@ public class Link{
   port.mergetWithParent(parentLink.getPort());
 }
 
-if (null == properties && null != parentLink.properties) {
-  properties = parentLink.properties;
+if (null == attributes && null != parentLink.attributes) {
+  attributes = parentLink.attributes;
 }
   }
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/050caf01/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
--
diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
index 5124241..d784a22 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
@@ -22,7 +22,7 @@ import org.apache.ambari.server.state.quicklinks.Link;
 
 /**
  * A filter that accepts all links. It is useful to specify a general rule 
while the more specific
- * ({@link LinkNameFilter} and {@link PropertyFilter}) filters handle more 
special cases.
+ * ({@link LinkNameFilter} and {@link LinkAttributeFilter}) filters handle 
more special cases.
  */
 public class AcceptAllFilter extends Filter {
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/050caf01/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/Component.java
-

ambari git commit: AMBARI-19244. Create profile evaluator. (Balazs Bence Sari via stoader)

2016-12-23 Thread stoader
Repository: ambari
Updated Branches:
  refs/heads/trunk 680661193 -> 0a1d7c2a9


AMBARI-19244. Create profile evaluator. (Balazs Bence Sari via stoader)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/0a1d7c2a
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/0a1d7c2a
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/0a1d7c2a

Branch: refs/heads/trunk
Commit: 0a1d7c2a947a143d94c7338b509809d261625217
Parents: 6806611
Author: Balazs Bence Sari 
Authored: Fri Dec 23 22:15:18 2016 +0100
Committer: Toader, Sebastian 
Committed: Fri Dec 23 22:15:18 2016 +0100

--
 .../ambari/server/state/quicklinks/Link.java|  16 +-
 .../quicklinksprofile/AcceptAllFilter.java  |   2 +-
 .../state/quicklinksprofile/Component.java  |   7 +
 .../server/state/quicklinksprofile/Filter.java  |  10 +-
 .../quicklinksprofile/LinkAttributeFilter.java  |  61 ++
 .../state/quicklinksprofile/PropertyFilter.java |  60 --
 .../quicklinksprofile/QuickLinksProfile.java|   7 +
 .../QuickLinksProfileEvaluator.java | 202 ++
 .../QuickLinksProfileEvaluatorException.java|  27 +++
 .../QuickLinksProfileParser.java|  10 +-
 .../server/state/quicklinksprofile/Service.java |   8 +
 .../QuickLinksConfigurationModuleTest.java  |  10 +-
 .../state/quicklinksprofile/EvaluatorTest.java  | 203 +++
 .../QuickLinksProfileEvaluatorTest.java | 168 +++
 .../QuickLinksProfileParserTest.java|   4 +-
 .../child_quicklinks_with_attributes.json   |  64 ++
 .../child_quicklinks_with_properties.json   |  64 --
 .../resources/example_quicklinks_profile.json   |   4 +-
 .../inconsistent_quicklinks_profile.json|   2 +-
 .../parent_quicklinks_with_attributes.json  |  65 ++
 .../parent_quicklinks_with_properties.json  |  65 --
 21 files changed, 841 insertions(+), 218 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/0a1d7c2a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
--
diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
index 72ad764..f589f5d 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
@@ -50,8 +50,8 @@ public class Link{
   @JsonProperty("protocol")
   private Protocol protocol;
 
-  @JsonProperty("properties")
-  private List properties;
+  @JsonProperty("attributes")
+  private List attributes;
 
   public String getName() {
 return name;
@@ -110,12 +110,12 @@ public class Link{
   }
 
   @Nullable
-  public List getProperties() {
-return properties;
+  public List getAttributes() {
+return attributes;
   }
 
-  public void setProperties(List properties) {
-this.properties = properties;
+  public void setAttributes(List attributes) {
+this.attributes = attributes;
   }
 
   public boolean isRemoved(){
@@ -148,8 +148,8 @@ public class Link{
   port.mergetWithParent(parentLink.getPort());
 }
 
-if (null == properties && null != parentLink.properties) {
-  properties = parentLink.properties;
+if (null == attributes && null != parentLink.attributes) {
+  attributes = parentLink.attributes;
 }
   }
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/0a1d7c2a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
--
diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
index 5124241..d784a22 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
@@ -22,7 +22,7 @@ import org.apache.ambari.server.state.quicklinks.Link;
 
 /**
  * A filter that accepts all links. It is useful to specify a general rule 
while the more specific
- * ({@link LinkNameFilter} and {@link PropertyFilter}) filters handle more 
special cases.
+ * ({@link LinkNameFilter} and {@link LinkAttributeFilter}) filters handle 
more special cases.
  */
 public class AcceptAllFilter extends Filter {
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/0a1d7c2a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/Component.java
---

ambari git commit: AMBARI-19244. Create profile evaluator. (Balazs Bence Sari via stoader)

2016-12-23 Thread stoader
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 e1ce1dfe7 -> 8c79bd168


AMBARI-19244. Create profile evaluator. (Balazs Bence Sari via stoader)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8c79bd16
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8c79bd16
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8c79bd16

Branch: refs/heads/branch-2.5
Commit: 8c79bd168aaad4cc185e258ee29513bb4f9def74
Parents: e1ce1df
Author: Balazs Bence Sari 
Authored: Fri Dec 23 13:27:56 2016 +0100
Committer: Toader, Sebastian 
Committed: Fri Dec 23 13:28:52 2016 +0100

--
 .../ambari/server/state/quicklinks/Link.java|  16 +-
 .../quicklinksprofile/AcceptAllFilter.java  |   2 +-
 .../state/quicklinksprofile/Component.java  |   7 +
 .../server/state/quicklinksprofile/Filter.java  |  10 +-
 .../quicklinksprofile/LinkAttributeFilter.java  |  61 ++
 .../state/quicklinksprofile/PropertyFilter.java |  60 --
 .../quicklinksprofile/QuickLinksProfile.java|   7 +
 .../QuickLinksProfileEvaluator.java | 202 ++
 .../QuickLinksProfileEvaluatorException.java|  27 +++
 .../QuickLinksProfileParser.java|  10 +-
 .../server/state/quicklinksprofile/Service.java |   8 +
 .../QuickLinksConfigurationModuleTest.java  |  10 +-
 .../state/quicklinksprofile/EvaluatorTest.java  | 204 +++
 .../QuickLinksProfileEvaluatorTest.java | 167 +++
 .../QuickLinksProfileParserTest.java|   4 +-
 .../HIVE/0.11.0.2.0.5.0/package/.hash   |   1 -
 .../dummy_stack/HIVE/package/.hash  |   1 -
 .../child_quicklinks_with_attributes.json   |  64 ++
 .../child_quicklinks_with_properties.json   |  64 --
 .../resources/example_quicklinks_profile.json   |   4 +-
 .../inconsistent_quicklinks_profile.json|   2 +-
 .../parent_quicklinks_with_attributes.json  |  65 ++
 .../parent_quicklinks_with_properties.json  |  65 --
 23 files changed, 841 insertions(+), 220 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/8c79bd16/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
--
diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
index f7c14f3..c26eda9 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
@@ -51,8 +51,8 @@ public class Link{
   @JsonProperty("protocol")
   private Protocol protocol;
 
-  @JsonProperty("properties")
-  private List properties;
+  @JsonProperty("attributes")
+  private List attributes;
 
   public String getName() {
 return name;
@@ -111,12 +111,12 @@ public class Link{
   }
 
   @Nullable
-  public List getProperties() {
-return properties;
+  public List getAttributes() {
+return attributes;
   }
 
-  public void setProperties(List properties) {
-this.properties = properties;
+  public void setAttributes(List attributes) {
+this.attributes = attributes;
   }
 
   public boolean isRemoved(){
@@ -149,8 +149,8 @@ public class Link{
   port.mergetWithParent(parentLink.getPort());
 }
 
-if (null == properties && null != parentLink.properties) {
-  properties = parentLink.properties;
+if (null == attributes && null != parentLink.attributes) {
+  attributes = parentLink.attributes;
 }
   }
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/8c79bd16/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
--
diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
index 5124241..d784a22 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
@@ -22,7 +22,7 @@ import org.apache.ambari.server.state.quicklinks.Link;
 
 /**
  * A filter that accepts all links. It is useful to specify a general rule 
while the more specific
- * ({@link LinkNameFilter} and {@link PropertyFilter}) filters handle more 
special cases.
+ * ({@link LinkNameFilter} and {@link LinkAttributeFilter}) filters handle 
more special cases.
  */
 public class AcceptAllFilter extends Filter {
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/8c79bd16

ambari git commit: AMBARI-19244. Create profile evaluator. (Balazs Bence Sari via stoader)

2016-12-23 Thread stoader
Repository: ambari
Updated Branches:
  refs/heads/trunk 564b8f775 -> 83f3b6fb0


AMBARI-19244. Create profile evaluator. (Balazs Bence Sari via stoader)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/83f3b6fb
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/83f3b6fb
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/83f3b6fb

Branch: refs/heads/trunk
Commit: 83f3b6fb0fb98bc99e74b0d1f2c55e5229c697ac
Parents: 564b8f7
Author: Balazs Bence Sari 
Authored: Fri Dec 23 13:27:56 2016 +0100
Committer: Toader, Sebastian 
Committed: Fri Dec 23 13:27:56 2016 +0100

--
 .../ambari/server/state/quicklinks/Link.java|  16 +-
 .../quicklinksprofile/AcceptAllFilter.java  |   2 +-
 .../state/quicklinksprofile/Component.java  |   7 +
 .../server/state/quicklinksprofile/Filter.java  |  10 +-
 .../quicklinksprofile/LinkAttributeFilter.java  |  61 ++
 .../state/quicklinksprofile/PropertyFilter.java |  60 --
 .../quicklinksprofile/QuickLinksProfile.java|   7 +
 .../QuickLinksProfileEvaluator.java | 202 ++
 .../QuickLinksProfileEvaluatorException.java|  27 +++
 .../QuickLinksProfileParser.java|  10 +-
 .../server/state/quicklinksprofile/Service.java |   8 +
 .../QuickLinksConfigurationModuleTest.java  |  10 +-
 .../state/quicklinksprofile/EvaluatorTest.java  | 204 +++
 .../QuickLinksProfileEvaluatorTest.java | 167 +++
 .../QuickLinksProfileParserTest.java|   4 +-
 .../HIVE/0.11.0.2.0.5.0/package/.hash   |   1 -
 .../dummy_stack/HIVE/package/.hash  |   1 -
 .../child_quicklinks_with_attributes.json   |  64 ++
 .../child_quicklinks_with_properties.json   |  64 --
 .../resources/example_quicklinks_profile.json   |   4 +-
 .../inconsistent_quicklinks_profile.json|   2 +-
 .../parent_quicklinks_with_attributes.json  |  65 ++
 .../parent_quicklinks_with_properties.json  |  65 --
 23 files changed, 841 insertions(+), 220 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/83f3b6fb/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
--
diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
index 72ad764..f589f5d 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinks/Link.java
@@ -50,8 +50,8 @@ public class Link{
   @JsonProperty("protocol")
   private Protocol protocol;
 
-  @JsonProperty("properties")
-  private List properties;
+  @JsonProperty("attributes")
+  private List attributes;
 
   public String getName() {
 return name;
@@ -110,12 +110,12 @@ public class Link{
   }
 
   @Nullable
-  public List getProperties() {
-return properties;
+  public List getAttributes() {
+return attributes;
   }
 
-  public void setProperties(List properties) {
-this.properties = properties;
+  public void setAttributes(List attributes) {
+this.attributes = attributes;
   }
 
   public boolean isRemoved(){
@@ -148,8 +148,8 @@ public class Link{
   port.mergetWithParent(parentLink.getPort());
 }
 
-if (null == properties && null != parentLink.properties) {
-  properties = parentLink.properties;
+if (null == attributes && null != parentLink.attributes) {
+  attributes = parentLink.attributes;
 }
   }
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/83f3b6fb/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
--
diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
index 5124241..d784a22 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/AcceptAllFilter.java
@@ -22,7 +22,7 @@ import org.apache.ambari.server.state.quicklinks.Link;
 
 /**
  * A filter that accepts all links. It is useful to specify a general rule 
while the more specific
- * ({@link LinkNameFilter} and {@link PropertyFilter}) filters handle more 
special cases.
+ * ({@link LinkNameFilter} and {@link LinkAttributeFilter}) filters handle 
more special cases.
  */
 public class AcceptAllFilter extends Filter {
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/83f3b6fb/ambari-se