|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.counters.AbstractStatisticsCollector
com.bigdata.counters.linux.StatisticsCollectorForLinux
public class StatisticsCollectorForLinux
Collection of host performance data using vmstat and
sysstat suite.
http://pagesperso-orange.fr/sebastien.godard/| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.bigdata.counters.AbstractStatisticsCollector |
|---|
AbstractStatisticsCollector.Options |
| Field Summary | |
|---|---|
protected static KernelVersion |
kernelVersion
The Linux KernelVersion. |
protected static int |
pid
The process identifier for this process (the JVM). |
protected PIDStatCollector |
pidstat
reports on process performance counters (CPU, MEM, IO). |
protected String |
processName
The name of the process (or more typically its service UUID)
whose per-process performance counters are to be collected. |
protected SarCpuUtilizationCollector |
sar1
Reports on the host CPU utilization (these data are also available using vmstat). |
protected VMStatCollector |
vmstat
Reports on the host page faults, swap space and can report CPU utilization. |
| Fields inherited from class com.bigdata.counters.AbstractStatisticsCollector |
|---|
fullyQualifiedHostName, hostPathPrefix, interval, log, ps |
| Constructor Summary | |
|---|---|
StatisticsCollectorForLinux(int interval,
String processName)
|
|
| 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 com.bigdata.counters.AbstractStatisticsCollector |
|---|
addBasicServiceOrClientCounters, addGarbageCollectorMXBeanCounters, addServiceProperties, getInterval, installShutdownHook, kb2b, main, newInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static int pid
protected static KernelVersion kernelVersion
KernelVersion.
protected final String processName
UUID)
whose per-process performance counters are to be collected.
protected SarCpuUtilizationCollector sar1
protected VMStatCollector vmstat
protected PIDStatCollector pidstat
| Constructor Detail |
|---|
public StatisticsCollectorForLinux(int interval,
String processName)
interval - The interval at which the performance counters will be
collected in seconds.processName - The name of the process (or more typically its service
UUID) whose per-process performance counters are to
be collected.| Method Detail |
|---|
public void start()
AbstractStatisticsCollector
start in interface IStatisticsCollectorstart in class AbstractStatisticsCollectorpublic void stop()
AbstractStatisticsCollector
stop in interface IStatisticsCollectorstop in class AbstractStatisticsCollectorpublic CounterSet getCounters()
AbstractStatisticsCollectorAbstractProcessCollector.
Note: Subclasses MUST extend this method to initialize their own counters.
getCounters in interface IStatisticsCollectorgetCounters in class AbstractStatisticsCollector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||