kg.apc.jmeter.jmxmon
Class JMXMonCollector

java.lang.Object
  extended by org.apache.jmeter.testelement.AbstractTestElement
      extended by org.apache.jmeter.reporters.AbstractListenerElement
          extended by org.apache.jmeter.reporters.ResultCollector
              extended by kg.apc.jmeter.vizualizers.CorrectedResultCollector
                  extended by kg.apc.jmeter.jmxmon.JMXMonCollector
All Implemented Interfaces:
Serializable, Cloneable, Runnable, JMXMonSampleGenerator, org.apache.jmeter.engine.util.NoThreadClone, org.apache.jmeter.gui.Searchable, org.apache.jmeter.samplers.Clearable, org.apache.jmeter.samplers.Remoteable, org.apache.jmeter.samplers.SampleListener, org.apache.jmeter.testelement.TestElement, org.apache.jmeter.testelement.TestStateListener

public class JMXMonCollector
extends CorrectedResultCollector
implements Runnable, JMXMonSampleGenerator

Author:
Lars Holmberg
See Also:
Serialized Form

Field Summary
static String DATA_PROPERTY
           
protected  List<JMXMonSampler> jmxMonSamplers
           
 
Fields inherited from class kg.apc.jmeter.vizualizers.CorrectedResultCollector
EXCLUDE_SAMPLE_LABELS, INCLUDE_SAMPLE_LABELS
 
Fields inherited from class org.apache.jmeter.reporters.ResultCollector
FILENAME
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
JMXMonCollector()
           
 
Method Summary
 void generateSample(double value, String label)
           
 org.apache.jmeter.testelement.property.JMeterProperty getSamplerSettings()
           
protected  void initiateConnector(JMXServiceURL u, Hashtable attributes, String jmxUrl, String name, boolean delta, String objectName, String attribute, String key)
           
protected  void jmxMonSampleOccurred(org.apache.jmeter.samplers.SampleEvent event)
           
protected  void processConnectors()
           
 void run()
           
 void sampleOccurred(org.apache.jmeter.samplers.SampleEvent event)
           
 void setData(org.apache.jmeter.testelement.property.CollectionProperty rows)
           
 void testEnded(String host)
           
 void testStarted(String host)
           
 
Methods inherited from class kg.apc.jmeter.vizualizers.CorrectedResultCollector
getList, setExcludeLabels, setIncludeLabels, testStarted
 
Methods inherited from class org.apache.jmeter.reporters.ResultCollector
clearData, clone, getFilename, getSaveConfig, isErrorLogging, isSampleWanted, isSampleWanted, isSuccessOnlyLogging, loadExistingFile, recordStats, sampleStarted, sampleStopped, sendToVisualizer, setErrorLogging, setFilename, setSaveConfig, setSuccessOnlyLogging, testEnded
 
Methods inherited from class org.apache.jmeter.reporters.AbstractListenerElement
getVisualizer, setListener
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_PROPERTY

public static final String DATA_PROPERTY
See Also:
Constant Field Values

jmxMonSamplers

protected List<JMXMonSampler> jmxMonSamplers
Constructor Detail

JMXMonCollector

public JMXMonCollector()
Method Detail

setData

public void setData(org.apache.jmeter.testelement.property.CollectionProperty rows)

getSamplerSettings

public org.apache.jmeter.testelement.property.JMeterProperty getSamplerSettings()

run

public void run()
Specified by:
run in interface Runnable

testStarted

public void testStarted(String host)
Specified by:
testStarted in interface org.apache.jmeter.testelement.TestStateListener
Overrides:
testStarted in class CorrectedResultCollector

testEnded

public void testEnded(String host)
Specified by:
testEnded in interface org.apache.jmeter.testelement.TestStateListener
Overrides:
testEnded in class org.apache.jmeter.reporters.ResultCollector

initiateConnector

protected void initiateConnector(JMXServiceURL u,
                                 Hashtable attributes,
                                 String jmxUrl,
                                 String name,
                                 boolean delta,
                                 String objectName,
                                 String attribute,
                                 String key)
                          throws IOException
Throws:
IOException

processConnectors

protected void processConnectors()

sampleOccurred

public void sampleOccurred(org.apache.jmeter.samplers.SampleEvent event)
Specified by:
sampleOccurred in interface org.apache.jmeter.samplers.SampleListener
Overrides:
sampleOccurred in class org.apache.jmeter.reporters.ResultCollector

jmxMonSampleOccurred

protected void jmxMonSampleOccurred(org.apache.jmeter.samplers.SampleEvent event)

generateSample

public void generateSample(double value,
                           String label)
Specified by:
generateSample in interface JMXMonSampleGenerator


Copyright © 2014. All Rights Reserved.