public class JmxCollector
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_GRAPH_CLUSTER_NAME |
static java.lang.String |
GRAPH_CLUSTER_PREFIX |
static java.lang.String |
GRAPH_JSON |
static int |
SECONDS_BETWEEN_SERVER_JOB_RUNS |
| Constructor and Description |
|---|
JmxCollector(FabricService fabricService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureProfileServer(com.googlecode.jmxtrans.model.Server server,
Container container,
Profile profile) |
protected com.googlecode.jmxtrans.OutputWriter |
createClusterWriter(java.lang.String clusterName)
Lets look in ZK and see what the definition of the graphing cluster is and create an OutputWriter for that cluster
|
void |
destroy() |
java.lang.String |
getClusterRoot() |
static com.googlecode.jmxtrans.model.JmxProcess |
getJmxProcess(java.lang.String name,
java.io.InputStream in) |
java.util.Map<java.lang.String,org.apache.commons.pool.KeyedObjectPool> |
getObjectPoolMap()
Returns the object pool map
|
org.quartz.Scheduler |
getScheduler() |
IZKClient |
getZkClient() |
protected void |
loadProfile(Container container,
Profile profile) |
void |
process() |
void |
registerMBeanServer(javax.management.MBeanServer mbeanServer) |
void |
setClusterRoot(java.lang.String clusterRoot) |
void |
setObjectPoolMap(java.util.Map<java.lang.String,org.apache.commons.pool.KeyedObjectPool> poolMap) |
void |
setScheduler(org.quartz.Scheduler scheduler) |
void |
setZkClient(IZKClient zkClient) |
void |
start() |
void |
unregisterMBeanServer(javax.management.MBeanServer mbeanServer) |
public static final java.lang.String GRAPH_JSON
public static int SECONDS_BETWEEN_SERVER_JOB_RUNS
public static final java.lang.String GRAPH_CLUSTER_PREFIX
protected static final java.lang.String DEFAULT_GRAPH_CLUSTER_NAME
public JmxCollector(FabricService fabricService)
public void start()
throws java.io.IOException,
com.googlecode.jmxtrans.util.ValidationException,
com.googlecode.jmxtrans.util.LifecycleException,
org.quartz.SchedulerException,
java.text.ParseException
java.io.IOExceptioncom.googlecode.jmxtrans.util.ValidationExceptioncom.googlecode.jmxtrans.util.LifecycleExceptionorg.quartz.SchedulerExceptionjava.text.ParseExceptionpublic void destroy()
throws java.lang.Exception
java.lang.Exceptionpublic void registerMBeanServer(javax.management.MBeanServer mbeanServer)
public void unregisterMBeanServer(javax.management.MBeanServer mbeanServer)
public org.quartz.Scheduler getScheduler()
throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionpublic void setScheduler(org.quartz.Scheduler scheduler)
public IZKClient getZkClient()
public void setZkClient(IZKClient zkClient)
public java.lang.String getClusterRoot()
public void setClusterRoot(java.lang.String clusterRoot)
public void process()
throws com.googlecode.jmxtrans.util.LifecycleException,
com.googlecode.jmxtrans.util.ValidationException,
org.quartz.SchedulerException,
java.text.ParseException
com.googlecode.jmxtrans.util.LifecycleExceptioncom.googlecode.jmxtrans.util.ValidationExceptionorg.quartz.SchedulerExceptionjava.text.ParseExceptionpublic java.util.Map<java.lang.String,org.apache.commons.pool.KeyedObjectPool> getObjectPoolMap()
public void setObjectPoolMap(java.util.Map<java.lang.String,org.apache.commons.pool.KeyedObjectPool> poolMap)
protected void loadProfile(Container container, Profile profile) throws java.io.IOException, com.googlecode.jmxtrans.util.LifecycleException
java.io.IOExceptioncom.googlecode.jmxtrans.util.LifecycleExceptionprotected void configureProfileServer(com.googlecode.jmxtrans.model.Server server,
Container container,
Profile profile)
throws com.googlecode.jmxtrans.util.LifecycleException
com.googlecode.jmxtrans.util.LifecycleExceptionprotected com.googlecode.jmxtrans.OutputWriter createClusterWriter(java.lang.String clusterName)
throws com.googlecode.jmxtrans.util.LifecycleException
com.googlecode.jmxtrans.util.LifecycleExceptionpublic static com.googlecode.jmxtrans.model.JmxProcess getJmxProcess(java.lang.String name,
java.io.InputStream in)
throws org.codehaus.jackson.JsonParseException,
org.codehaus.jackson.map.JsonMappingException,
java.io.IOException
org.codehaus.jackson.JsonParseExceptionorg.codehaus.jackson.map.JsonMappingExceptionjava.io.IOExceptionCopyright © 2014 Red Hat. All Rights Reserved.