Brooklyn

brooklyn.event.feed.windows
[Java] Class WindowsPerformanceCounterFeed

java.lang.Object
  brooklyn.event.feed.AbstractFeed
      brooklyn.event.feed.windows.WindowsPerformanceCounterFeed

public class WindowsPerformanceCounterFeed
extends AbstractFeed

A sensor feed that retrieves performance counters from a Windows host and posts the values to sensors.

To use this feed, you must provide the entity, and a collection of mappings between Windows performance counter names and Brooklyn attribute sensors.

This feed uses SSH to invoke the windows utility typeperf to query for a specific set of performance counters, by name. The values are extracted from the response, and published to the entity's sensors.

Example:

@Override protected void connectSensors() { WindowsPerformanceCounterFeed feed = WindowsPerformanceCounterFeed.builder() .entity(entity) .addSensor("\\Processor(_total)\\% Idle Time", CPU_IDLE_TIME) .addSensor("\\Memory\\Available MBytes", AVAILABLE_MEMORY) .build(); }
Authors:
richardcloudsoft
Since:
0.6.0


Nested Class Summary
static class WindowsPerformanceCounterFeed.Builder

 
Field Summary
protected static java.util.regex.Pattern lineWithPerfData

 
Fields inherited from class AbstractFeed
entity, poller
 
Method Summary
protected java.lang.Object WindowsPerformanceCounterFeed(WindowsPerformanceCounterFeed.Builder builder)

static WindowsPerformanceCounterFeed.Builder builder()

protected void preStart()

 
Methods inherited from class AbstractFeed
getEntity, isActivated, isActive, isConnected, postStop, preStart, preStop, resume, start, stop, suspend
 

Field Detail

lineWithPerfData

protected static final java.util.regex.Pattern lineWithPerfData


 
Method Detail

WindowsPerformanceCounterFeed

protected java.lang.Object WindowsPerformanceCounterFeed(WindowsPerformanceCounterFeed.Builder builder)


builder

public static WindowsPerformanceCounterFeed.Builder builder()


preStart

protected void preStart() {
protected void preStart()


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.