public abstract class GSampler
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
private int |
delay |
private int |
initialDelay |
protected java.lang.String |
process |
private Publisher |
publisher |
| Constructor and Description |
|---|
GSampler(int initialDelay,
int delay,
java.lang.String process)
Creates a GSampler
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDelay()
Returns the sample interval
|
int |
getInitialDelay()
Returns the initial delay before sampling begins
|
Publisher |
getPublisher() |
void |
setPublisher(Publisher publisher) |
private int delay
private int initialDelay
private Publisher publisher
protected java.lang.String process
public GSampler(int initialDelay,
int delay,
java.lang.String process)
delay - the sample interval in secondsprocess - the process name that is appended to metricspublic int getDelay()
public int getInitialDelay()
public Publisher getPublisher()
public void setPublisher(Publisher publisher)