Skip to content
Permalink
Browse files
get rid of *Worker: rename to JVMResourceSampler
git-svn-id: https://svn.apache.org/repos/asf/james/postage/trunk@697923 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Bernd Fondermann committed Sep 22, 2008
1 parent d64bd3b commit 4c4f3f2d0fd2cd39c4bb164a28a1056da12df010
Showing 2 changed files with 5 additions and 5 deletions.
@@ -29,7 +29,7 @@
import org.apache.james.postage.configuration.PostageConfiguration;
import org.apache.james.postage.configuration.SendProfile;
import org.apache.james.postage.execution.SampleController;
import org.apache.james.postage.jmx.JVMResourceSamplerWorker;
import org.apache.james.postage.jmx.JVMResourceSampler;
import org.apache.james.postage.result.PostageRunnerResult;
import org.apache.james.postage.result.PostageRunnerResultImpl;
import org.apache.james.postage.smtpserver.SMTPMailSink;
@@ -68,7 +68,7 @@ public class PostageRunner implements Runnable {

private List<SampleController> m_sendControllers = new ArrayList<SampleController>();

private JVMResourceSamplerWorker m_jvmResourceSampler = null;
private JVMResourceSampler m_jvmResourceSampler = null;
private SampleController m_jvmResourceController = null;

private int m_minutesRunning = 0;
@@ -430,7 +430,7 @@ private void setupJMXRemoting() throws StartupException {
if (jmxPort <= 0) {
return;
}
JVMResourceSamplerWorker jvmResourceSampler = new JVMResourceSamplerWorker("localhost", jmxPort, m_results);
JVMResourceSampler jvmResourceSampler = new JVMResourceSampler("localhost", jmxPort, m_results);
try {
jvmResourceSampler.connectRemoteJamesJMXServer();
log.info("connected to remote JMX");
@@ -51,15 +51,15 @@
* <br/>
* this class does not even compile on Java versions before JSE 5.<br/>
*/
public class JVMResourceSamplerWorker implements Sampler {
public class JVMResourceSampler implements Sampler {

private String m_host;
private int m_port;
private PostageRunnerResult m_results;

private MBeanServerConnection m_mBeanServerConnection;

public JVMResourceSamplerWorker(String host, int port, PostageRunnerResult results) {
public JVMResourceSampler(String host, int port, PostageRunnerResult results) {
m_host = host;
m_port = port;
m_results = results;

0 comments on commit 4c4f3f2

Please sign in to comment.