You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ud...@apache.org on 2013/12/20 16:15:25 UTC

[10/19] git commit: Formatted code in health statistics publisher

Formatted code in health statistics publisher


Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/21d9aec7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/21d9aec7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/21d9aec7

Branch: refs/heads/master
Commit: 21d9aec72510577aac8331d6811fbaf7d5326361
Parents: 70a4132
Author: Imesh Gunaratne <im...@apache.org>
Authored: Fri Dec 20 14:54:24 2013 +0530
Committer: Udara Liyanage <ud...@wso2.com>
Committed: Fri Dec 20 20:25:37 2013 -0500

----------------------------------------------------------------------
 .../agent/statistics/publisher/HealthStatisticsPublisher.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/21d9aec7/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/statistics/publisher/HealthStatisticsPublisher.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/statistics/publisher/HealthStatisticsPublisher.java b/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/statistics/publisher/HealthStatisticsPublisher.java
index e4f0ae8..4972a30 100644
--- a/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/statistics/publisher/HealthStatisticsPublisher.java
+++ b/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/statistics/publisher/HealthStatisticsPublisher.java
@@ -43,15 +43,14 @@ public class HealthStatisticsPublisher extends WSO2CEPStatisticsPublisher {
             StreamDefinition streamDefinition = new StreamDefinition(DATA_STREAM_NAME, VERSION);
             streamDefinition.setNickName("agent health stats");
             streamDefinition.setDescription("agent health stats");
+            // Payload definition
             List<Attribute> payloadData = new ArrayList<Attribute>();
-
             payloadData.add(new Attribute("cluster_id", AttributeType.STRING));
             payloadData.add(new Attribute("network_partition_id", AttributeType.STRING));
             payloadData.add(new Attribute("member_id", AttributeType.STRING));
             payloadData.add(new Attribute("partition_id", AttributeType.STRING));
             payloadData.add(new Attribute("health_description", AttributeType.STRING));
             payloadData.add(new Attribute("value", AttributeType.DOUBLE));
-
             streamDefinition.setPayloadData(payloadData);
             return streamDefinition;
         } catch (Exception e) {