com.bigdata.counters.win
Class StatisticsCollectorForWindows
java.lang.Object
com.bigdata.counters.AbstractStatisticsCollector
com.bigdata.counters.win.StatisticsCollectorForWindows
- All Implemented Interfaces:
- IStatisticsCollector
public class StatisticsCollectorForWindows
- extends AbstractStatisticsCollector
Collects per-host performance counters on a Windows platform.
Note: The concept of a PID exists for Windows, but it is not relevant to
collection of performance counters since Windows does not appear to support
collection by PID, only by the process name. Since we run multiple services
per host, collection by process name is not sufficient to facilitate decision
making by the load balancer. Instead, the load balancer relies on service
specific performance counters, including the average queue length and
response time.
- Version:
- $Id: StatisticsCollectorForWindows.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
- See Also:
http://technet2.microsoft.com/windowsserver/en/library/45b6fbfc-9fcd-4e58-b070-1ace9ca93f2e1033.mspx?mfr=true,
for a description of the typeperf command.,
http://www.microsoft.com.nsatc.net/technet/archive/winntas/maintain/monitor/perform.mspx?mfr=true,
for a list of counters and their descriptions.
|
Method Summary |
CounterSet |
getCounters()
Return the counter hierarchy. |
void |
start()
Start collecting host performance data -- must be extended by the
concrete subclass. |
void |
stop()
Stop collecting host performance data -- must be extended by the concrete
subclass. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
typeperf
protected final TypeperfCollector typeperf
- reports on host performance counters (CPU, MEM, IO).
StatisticsCollectorForWindows
public StatisticsCollectorForWindows(int interval)
- Parameters:
interval - Reporting interval in seconds.
start
public void start()
- Description copied from class:
AbstractStatisticsCollector
- Start collecting host performance data -- must be extended by the
concrete subclass.
- Specified by:
start in interface IStatisticsCollector- Overrides:
start in class AbstractStatisticsCollector
stop
public void stop()
- Description copied from class:
AbstractStatisticsCollector
- Stop collecting host performance data -- must be extended by the concrete
subclass.
- Specified by:
stop in interface IStatisticsCollector- Overrides:
stop in class AbstractStatisticsCollector
getCounters
public CounterSet getCounters()
- Description copied from class:
AbstractStatisticsCollector
- Return the counter hierarchy. The returned hierarchy only includes those
counters whose values are available from the JVM. This collection is
normally augmented with platform specific performance counters collected
using an
AbstractProcessCollector.
Note: Subclasses MUST extend this method to initialize their own
counters.
- Specified by:
getCounters in interface IStatisticsCollector- Overrides:
getCounters in class AbstractStatisticsCollector
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.