org.fusesource.insight.graph.support
Class ZKClusterOutputWriter

java.lang.Object
  extended by com.googlecode.jmxtrans.util.BaseOutputWriter
      extended by org.fusesource.insight.graph.support.ZKClusterOutputWriter
All Implemented Interfaces:
com.googlecode.jmxtrans.OutputWriter

public class ZKClusterOutputWriter
extends com.googlecode.jmxtrans.util.BaseOutputWriter
implements com.googlecode.jmxtrans.OutputWriter


Field Summary
 
Fields inherited from class com.googlecode.jmxtrans.util.BaseOutputWriter
BINARY_PATH, DEBUG, HOST, OUTPUT_FILE, PORT, TEMPLATE_FILE, TYPE_NAMES
 
Constructor Summary
ZKClusterOutputWriter(JmxCollector collector, java.lang.String zkPath)
           
 
Method Summary
protected  void configureWriter(com.googlecode.jmxtrans.OutputWriter data)
           
 void doWrite(com.googlecode.jmxtrans.model.Query query)
           
 void setObjectPoolMap(java.util.Map<java.lang.String,org.apache.commons.pool.KeyedObjectPool> objectPool)
           
 void start()
           
 void stop()
           
 void validateSetup(com.googlecode.jmxtrans.model.Query query)
           
 
Methods inherited from class com.googlecode.jmxtrans.util.BaseOutputWriter
addSetting, addTypeName, cleanupStr, getBooleanSetting, getConcatedTypeNameValues, getSettings, getTypeNames, isDebugEnabled, setSettings, setTypeNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.googlecode.jmxtrans.OutputWriter
getSettings, setSettings
 

Constructor Detail

ZKClusterOutputWriter

public ZKClusterOutputWriter(JmxCollector collector,
                             java.lang.String zkPath)
Method Detail

start

public void start()
           throws com.googlecode.jmxtrans.util.LifecycleException
Specified by:
start in interface com.googlecode.jmxtrans.OutputWriter
Overrides:
start in class com.googlecode.jmxtrans.util.BaseOutputWriter
Throws:
com.googlecode.jmxtrans.util.LifecycleException

stop

public void stop()
          throws com.googlecode.jmxtrans.util.LifecycleException
Specified by:
stop in interface com.googlecode.jmxtrans.OutputWriter
Overrides:
stop in class com.googlecode.jmxtrans.util.BaseOutputWriter
Throws:
com.googlecode.jmxtrans.util.LifecycleException

validateSetup

public void validateSetup(com.googlecode.jmxtrans.model.Query query)
                   throws com.googlecode.jmxtrans.util.ValidationException
Specified by:
validateSetup in interface com.googlecode.jmxtrans.OutputWriter
Throws:
com.googlecode.jmxtrans.util.ValidationException

configureWriter

protected void configureWriter(com.googlecode.jmxtrans.OutputWriter data)

doWrite

public void doWrite(com.googlecode.jmxtrans.model.Query query)
             throws java.lang.Exception
Specified by:
doWrite in interface com.googlecode.jmxtrans.OutputWriter
Throws:
java.lang.Exception

setObjectPoolMap

public void setObjectPoolMap(java.util.Map<java.lang.String,org.apache.commons.pool.KeyedObjectPool> objectPool)
Specified by:
setObjectPoolMap in interface com.googlecode.jmxtrans.OutputWriter
Overrides:
setObjectPoolMap in class com.googlecode.jmxtrans.util.BaseOutputWriter


Copyright © 2013 Red Hat. All Rights Reserved.