![JAR search and dependency download from the Maven repository](/logo.png)
info.ganglia.gmetric4j.GSampler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gmetric4j Show documentation
Show all versions of gmetric4j Show documentation
JVM instrumentation to Ganglia
package info.ganglia.gmetric4j;
public abstract class GSampler implements Runnable {
/*
* The internal data structure is a hashmap of key=mbean name
*/
private int delay;
private int initialDelay;
private Publisher publisher = null;
protected String process = null ;
/**
* Creates a GSampler
* @param delay the sample interval in seconds
* @param process the process name that is appended to metrics
*/
public GSampler(int initialDelay, int delay, String process ) {
this.initialDelay = initialDelay ;
this.delay = delay;
this.process = process;
}
/**
* Returns the sample interval
* @return the sample interval in seconds
*/
public int getDelay() {
return delay;
}
/**
* Returns the initial delay before sampling begins
* @return the delay in seconds
*/
public int getInitialDelay() {
return initialDelay;
}
public Publisher getPublisher() {
return publisher;
}
public void setPublisher(Publisher publisher) {
this.publisher = publisher;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy