public class JmxService extends AbstractService implements HarvestListener
logger| Constructor and Description |
|---|
JmxService(JmxConfig jmxConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
addJmxAttributeProcessor(JmxAttributeProcessor attributeProcessor) |
void |
addJmxFrameworkValues(JmxFrameworkValues jmxValues)
This method can be called by multiple threads.
|
void |
afterHarvest(java.lang.String appName)
Called after the harvest.
|
void |
beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
Called before the harvest.
|
protected void |
doStart() |
protected void |
doStop() |
java.util.List<JmxGet> |
getConfigurations() |
boolean |
isEnabled()
Is the service enabled.
|
void |
reloadExtensions(java.util.Set<Extension> oldExtensions,
java.util.Set<Extension> extensions) |
void |
removeJmxServer(javax.management.MBeanServer serverToRemove)
This should only be called once per a server.
|
void |
setJmxServer(javax.management.MBeanServer server)
This should only be called once per a server.
|
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stoppublic JmxService(JmxConfig jmxConfig)
public java.util.List<JmxGet> getConfigurations()
public void addJmxAttributeProcessor(JmxAttributeProcessor attributeProcessor)
protected void doStart()
doStart in class AbstractServicepublic final boolean isEnabled()
Servicepublic void addJmxFrameworkValues(JmxFrameworkValues jmxValues)
protected void doStop()
doStop in class AbstractServicepublic void beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
HarvestListenerbeforeHarvest in interface HarvestListenerpublic void afterHarvest(java.lang.String appName)
HarvestListenerafterHarvest in interface HarvestListenerpublic void setJmxServer(javax.management.MBeanServer server)
public void removeJmxServer(javax.management.MBeanServer serverToRemove)
serverToRemove - The server to remove.