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:28 UTC
[13/19] git commit: Fixed cep stats publisher enabled flag
Fixed cep stats publisher enabled flag
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/6475c063
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/6475c063
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/6475c063
Branch: refs/heads/master
Commit: 6475c063e4e8ed996d4add3ea4c37e5899035328
Parents: 4e772d1
Author: Imesh Gunaratne <im...@apache.org>
Authored: Fri Dec 20 15:46:53 2013 +0530
Committer: Udara Liyanage <ud...@wso2.com>
Committed: Fri Dec 20 20:25:37 2013 -0500
----------------------------------------------------------------------
.../statistics/publisher/WSO2CEPStatisticsPublisher.java | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6475c063/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/statistics/publisher/WSO2CEPStatisticsPublisher.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/statistics/publisher/WSO2CEPStatisticsPublisher.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/statistics/publisher/WSO2CEPStatisticsPublisher.java
index 0899f1a..5db61cd 100644
--- a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/statistics/publisher/WSO2CEPStatisticsPublisher.java
+++ b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/statistics/publisher/WSO2CEPStatisticsPublisher.java
@@ -51,12 +51,10 @@ public class WSO2CEPStatisticsPublisher implements StatisticsPublisher {
this.port = System.getProperty("thrift.receiver.port");
this.username = "admin";
this.password = "admin";
- String enabledStr = System.getProperty("cep.stats.publisher.enabled");
- if (StringUtils.isNotBlank(enabledStr)) {
- enabled = Boolean.getBoolean(enabledStr);
- if (enabled) {
- init();
- }
+
+ enabled = Boolean.getBoolean("cep.stats.publisher.enabled");
+ if (enabled) {
+ init();
}
}