Can a class derived from AbstractVisualizer receive notifications from a ResultCollector
I am new to this list, and I am building a stats plugin that will expose the it's per-sampler (group by SampleLabel) stats via JMX. I have it working as a Visualizer derived from(StatVisualizer), so you can see the stats in a table as well as retrieve them from JMX. But alas this does not work in headless mode. So, need to add a ResultColletor. This results in the following question: Can a class derived from AbstractVisualizer that creates a TestElement derived from ResultCollector (that is building statistics) be notified when the ResultCollector updates the stats? Or do I need to clone the stats engine in both classes and do double the work as each will have to process add(SampleResult res) or sampleOccurred(SampleEvent se) respectively. Thanks, Blaine -- -- N. Blaine MorganGiven God nothing is impossible nbmor...@usa.net http://blainemorgan.com/ -= Imagination is more important than knowledge. =- -= Albert Einstein =-
Beanshell and Maven
I've been spending some time trying to get the JMeter dependencies that are not currently available in maven central added because a lot of corporate maven proxies (e.g. artifactory) are configured to only download packages from maven central. For a package to be moved into maven central it needs to have the sources and javadocs bundled with it as well (at least when trying to get packages pushed up using sonatypes oss service, it does). I've managed to get jCharts 0.7.5 added and it is now available in maven central, however I'm having real problems with the missing beanshell dependency. The problems I'm facing: . The current beanshell packages on third party maven repos do not have either sources or javadocs. . I am unable to find any active developers for beanshell. . I am unable to find the source code that so I can package it up as a sources jar and create a javadocs jar from the source. . I am having real problems finding an official 2.0b5 package which includes source and javadocs. There is a 2.0b5 package available in some third party maven repo's and you can download a copy of the 2.0b5 jar from the http://www.beanshell.org/ website, but there is no mention of 2.0b5 anywhere on the site and the mailing lists have been dead for years. With all of this in mind it looks like there is no way to get beanshell pushed into maven central (unless you know of a repo somewhere that has the missing parts). So down to my questions: 1. What would be the consequences of using bsh-2.0b4 instead of b5? I could set this as a dependency for the maven plugin I'm working on so that if a local cache can't download from a third party repo an older version is available. 2. Have you considered updating beanshell to the beanshell 2 fork that is currently active and being developed upon (http://code.google.com/p/beanshell2/)? It may be much easier to convince an active project to make a maven release of their code.
RE: Beanshell and Maven
I found the sources this morning \o/ Trying to get this uploaded to maven central now as well. -Original Message- From: Mark Collin [mailto:mark.col...@lazeryattack.com] Sent: 16 March 2012 06:34 To: dev@jmeter.apache.org Subject: Beanshell and Maven I've been spending some time trying to get the JMeter dependencies that are not currently available in maven central added because a lot of corporate maven proxies (e.g. artifactory) are configured to only download packages from maven central. For a package to be moved into maven central it needs to have the sources and javadocs bundled with it as well (at least when trying to get packages pushed up using sonatypes oss service, it does). I've managed to get jCharts 0.7.5 added and it is now available in maven central, however I'm having real problems with the missing beanshell dependency. The problems I'm facing: . The current beanshell packages on third party maven repos do not have either sources or javadocs. . I am unable to find any active developers for beanshell. . I am unable to find the source code that so I can package it up as a sources jar and create a javadocs jar from the source. . I am having real problems finding an official 2.0b5 package which includes source and javadocs. There is a 2.0b5 package available in some third party maven repo's and you can download a copy of the 2.0b5 jar from the http://www.beanshell.org/ website, but there is no mention of 2.0b5 anywhere on the site and the mailing lists have been dead for years. With all of this in mind it looks like there is no way to get beanshell pushed into maven central (unless you know of a repo somewhere that has the missing parts). So down to my questions: 1. What would be the consequences of using bsh-2.0b4 instead of b5? I could set this as a dependency for the maven plugin I'm working on so that if a local cache can't download from a third party repo an older version is available. 2. Have you considered updating beanshell to the beanshell 2 fork that is currently active and being developed upon (http://code.google.com/p/beanshell2/)? It may be much easier to convince an active project to make a maven release of their code.
Re: Can a class derived from AbstractVisualizer receive notifications from a ResultCollector
On Fri, Mar 16, 2012 at 4:14 AM, sebb seb...@gmail.com wrote: On 16 March 2012 06:26, Blaine Morgan nbmor...@gmail.com wrote: I am new to this list, and I am building a stats plugin that will expose the it's per-sampler (group by SampleLabel) stats via JMX. I have it working as a Visualizer derived from(StatVisualizer), so you can see the stats in a table as well as retrieve them from JMX. But alas this does not work in headless mode. So, need to add a ResultColletor. This results in the following question: Can a class derived from AbstractVisualizer that creates a TestElement derived from ResultCollector (that is building statistics) be notified when the ResultCollector updates the stats? Or do I need to clone the stats engine in both classes and do double the work as each will have to process add(SampleResult res) or sampleOccurred(SampleEvent se) respectively. Note that JMeter deliberately does not create visualisers when running in non-GUI mode. Visualisers should only be used for display purposes. Have a look at ResultSaver.java Yes, I have figured that much out. I want to calculate the stats regardless of GUI/non-GUI and expose them via JMX. If I have the add the following to my visualizer: @Override public TestElement createTestElement() { TestElement te = new StatIIJmxReporter(); this. modifyTestElement(te); //te.setComment(JMeterPluginsUtils.getWikiLinkText(WIKIPAGE)); te.setComment(Wiki Page goes here); return te; } The StatIIJmxReporter runs in GUI or non-GUI. I would like to visualize the same stats in a table but only in gui mode. Right now it looks as if I would have to do the calculations twice: once for the reporter and once for the visualizer. This feels wrong to me. Blaine