public class GMonitor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
daemon |
private GMetric |
gmetric |
private java.util.List<GSampler> |
samplers |
private GScheduler |
scheduler |
| Constructor and Description |
|---|
GMonitor() |
GMonitor(GScheduler scheduler) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSampler(GSampler s)
Adds a new MBeanSampler to be sampled
|
GMetric |
getGmetric() |
boolean |
isDaemon()
Returns the daemon status of the scheduler thread
|
static void |
main(java.lang.String[] args)
A log running, trivial main method for test purposes
premain method
|
void |
setDaemon(boolean daemon)
Sets the scheduler daemon thread to be true/false.
|
void |
setGmetric(GMetric gmetric) |
void |
start()
Starts the sampling
|
void |
stop()
Stops the sampling of MBeans
|
private java.util.List<GSampler> samplers
private boolean daemon
private GMetric gmetric
private GScheduler scheduler
public GMonitor()
public GMonitor(GScheduler scheduler)
public void start()
public void stop()
public void addSampler(GSampler s)
s - the MBeanSamplerpublic boolean isDaemon()
public void setDaemon(boolean daemon)
daemon - the requested scheduler daemon statuspublic GMetric getGmetric()
public void setGmetric(GMetric gmetric)
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - Not usedjava.lang.Exception