public abstract class AbstractProcessCollector extends Object implements IStatisticsCollector
Modifier and Type | Field and Description |
---|---|
protected ActiveProcess |
activeProcess |
protected static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
AbstractProcessCollector(int interval) |
Modifier and Type | Method and Description |
---|---|
abstract List<String> |
getCommand() |
int |
getInterval()
The interval in seconds at which the counter values are sampled.
|
abstract AbstractProcessReader |
getProcessReader() |
protected void |
setEnvironment(Map<String,String> env)
Override if you want to impose settings on environment variables.
|
void |
start()
Start collecting performance data.
|
void |
stop()
Stop collecting performance data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCounters
protected static final org.apache.log4j.Logger log
protected ActiveProcess activeProcess
public AbstractProcessCollector(int interval)
interval
- The interval at which the performance counters will be
read in milliseconds.public int getInterval()
IStatisticsCollector
getInterval
in interface IStatisticsCollector
protected void setEnvironment(Map<String,String> env)
public void start()
Creates the ActiveProcess
and the
ActiveProcess.start(AbstractProcessReader)
s it passing in the
value returned by the getProcessReader()
start
in interface IStatisticsCollector
public void stop()
IStatisticsCollector
stop
in interface IStatisticsCollector
public abstract AbstractProcessReader getProcessReader()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.