brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From drigod...@apache.org
Subject [1/2] brooklyn-server git commit: [BROOKLYN-515] WindowsPerformanceCounterSensors does not show values on some Windows deployments
Date Thu, 08 Jun 2017 08:48:32 GMT
Repository: brooklyn-server
Updated Branches:
  refs/heads/master 30292c967 -> 381b7e63f


[BROOKLYN-515] WindowsPerformanceCounterSensors does not show values on some Windows deployments


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/3a298fd5
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/3a298fd5
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/3a298fd5

Branch: refs/heads/master
Commit: 3a298fd50b8c42e210fbc9189e46ea37d7552946
Parents: 30292c9
Author: Valentin Aitken <bostko@gmail.com>
Authored: Wed Jun 7 20:30:12 2017 +0300
Committer: Valentin Aitken <bostko@gmail.com>
Committed: Wed Jun 7 20:30:12 2017 +0300

----------------------------------------------------------------------
 .../core/sensor/windows/WindowsPerformanceCounterSensors.java      | 2 ++
 .../brooklyn/feed/windows/WindowsPerformanceCounterFeed.java       | 1 +
 2 files changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/3a298fd5/software/winrm/src/main/java/org/apache/brooklyn/core/sensor/windows/WindowsPerformanceCounterSensors.java
----------------------------------------------------------------------
diff --git a/software/winrm/src/main/java/org/apache/brooklyn/core/sensor/windows/WindowsPerformanceCounterSensors.java
b/software/winrm/src/main/java/org/apache/brooklyn/core/sensor/windows/WindowsPerformanceCounterSensors.java
index 1d59796..20f04db 100644
--- a/software/winrm/src/main/java/org/apache/brooklyn/core/sensor/windows/WindowsPerformanceCounterSensors.java
+++ b/software/winrm/src/main/java/org/apache/brooklyn/core/sensor/windows/WindowsPerformanceCounterSensors.java
@@ -21,6 +21,7 @@ package org.apache.brooklyn.core.sensor.windows;
 import java.util.Map;
 import java.util.Set;
 
+import com.google.common.annotations.Beta;
 import org.apache.brooklyn.api.entity.EntityInitializer;
 import org.apache.brooklyn.api.entity.EntityLocal;
 import org.apache.brooklyn.config.ConfigKey;
@@ -36,6 +37,7 @@ import org.slf4j.LoggerFactory;
 
 import com.google.common.reflect.TypeToken;
 
+@Beta
 public class WindowsPerformanceCounterSensors implements EntityInitializer {
 
     private static final Logger LOG = LoggerFactory.getLogger(WindowsPerformanceCounterSensors.class);

http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/3a298fd5/software/winrm/src/main/java/org/apache/brooklyn/feed/windows/WindowsPerformanceCounterFeed.java
----------------------------------------------------------------------
diff --git a/software/winrm/src/main/java/org/apache/brooklyn/feed/windows/WindowsPerformanceCounterFeed.java
b/software/winrm/src/main/java/org/apache/brooklyn/feed/windows/WindowsPerformanceCounterFeed.java
index 650b9db..6f62612 100644
--- a/software/winrm/src/main/java/org/apache/brooklyn/feed/windows/WindowsPerformanceCounterFeed.java
+++ b/software/winrm/src/main/java/org/apache/brooklyn/feed/windows/WindowsPerformanceCounterFeed.java
@@ -191,6 +191,7 @@ public class WindowsPerformanceCounterFeed extends AbstractFeed {
         }
         
         Iterable<String> allParams = ImmutableList.<String>builder()
+                .add("$ProgressPreference = \"SilentlyContinue\";")
                 .add("(Get-Counter")
                 .add("-Counter")
                 .add(JOINER_ON_COMMA.join(Iterables.transform(performanceCounterNames, QuoteStringFunction.INSTANCE)))


Mime
View raw message