Valentin Aitken created BROOKLYN-516:
----------------------------------------

             Summary: WindowsPerformanceCounterSensors does not start on rebind
                 Key: BROOKLYN-516
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-516
             Project: Brooklyn
          Issue Type: Bug
            Reporter: Valentin Aitken


Scenario:
# Launch Apache Brooklyn with enabled persistence. (Use karaf build or classic 
build with {{--persist auto}} flags)
# Deploy a blueprint with WindowsPerformanceCounterSensors initializer 
{noformat}
  - type: org.apache.brooklyn.entity.software.base.VanillaWindowsProcess
    brooklyn.initializers:
      - type: 
org.apache.brooklyn.core.sensor.windows.WindowsPerformanceCounterSensors
        brooklyn.config:
          performance.counters:
            - name: percent.processor.time
              description: '% Processor Time'
              counter: \Processor Information(_total)\% Processor Time
{noformat}
# Restart Apache Brooklyn
# After restart {{percent.processor.time}} never changes

---
Currently poll job is added on preStart.
I think the fix would be similarly to 
{{org.apache.brooklyn.core.sensor.windows.WinRmCommandSensor}} to wrap the poll 
job in a feed and add the feed to the entity.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to