|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.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(); }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 |
---|
protected static final java.util.regex.Pattern lineWithPerfData
Method Detail |
---|
protected java.lang.Object WindowsPerformanceCounterFeed(WindowsPerformanceCounterFeed.Builder builder)
public static WindowsPerformanceCounterFeed.Builder builder()
protected void preStart() { protected void preStart()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.