Skip to content

Commit

Permalink
Remove java2 1.4 compatibility classes. (POSTAGE-20)
Browse files Browse the repository at this point in the history
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 7be64f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 105 deletions.
9 changes: 4 additions & 5 deletions src/main/java/org/apache/james/postage/PostageRunner.java
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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");
Expand Down
100 changes: 0 additions & 100 deletions src/main/java/org/apache/james/postage/jmx/JVMResourceSampler.java

This file was deleted.

0 comments on commit 7be64f3

Please sign in to comment.