Skip to content
Permalink
Browse files
Remove java2 1.4 compatibility classes. (POSTAGE-20)
git-svn-id: https://svn.apache.org/repos/asf/james/postage/trunk@697541 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Stefano Bagnara committed Sep 21, 2008
1 parent ea2e209 commit 7be64f34512c45b6c159a646ed52640dd299dd38
Showing 2 changed files with 4 additions and 105 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.JVMResourceSampler;
import org.apache.james.postage.jmx.JVMResourceSamplerWorker;
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 m_sendControllers = new ArrayList();

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

private int m_minutesRunning = 0;
@@ -426,12 +426,11 @@ private void setupForwardedMailInterceptor() throws StartupException {


private void setupJMXRemoting() throws StartupException {
boolean jmxAvailable = JVMResourceSampler.isJMXAvailable();
int jmxPort = m_postageConfiguration.getTestserverPortJMXRemoting();
if (!jmxAvailable || jmxPort <= 0) {
if (jmxPort <= 0) {
return;
}
JVMResourceSampler jvmResourceSampler = new JVMResourceSampler("localhost", jmxPort, m_results);
JVMResourceSamplerWorker jvmResourceSampler = new JVMResourceSamplerWorker("localhost", jmxPort, m_results);
try {
jvmResourceSampler.connectRemoteJamesJMXServer();
log.info("connected to remote JMX");

This file was deleted.

0 comments on commit 7be64f3

Please sign in to comment.