public class GMonitor extends Object
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(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
|
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)
Copyright © 2016. All rights reserved.