You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by be...@apache.org on 2006/08/10 08:37:16 UTC
svn commit: r430284 [1/2] - in /james/postage/trunk: ./ src/main/config/
src/main/java/org/apache/james/postage/
src/main/java/org/apache/james/postage/client/
src/main/java/org/apache/james/postage/configuration/
src/main/java/org/apache/james/postage...
Author: berndf
Date: Wed Aug 9 23:37:14 2006
New Revision: 430284
URL: http://svn.apache.org/viewvc?rev=430284&view=rev
Log:
- apply new ASF headers
- remove trailing whitespaces
- fix config file location in ant file
Modified:
james/postage/trunk/build.xml
james/postage/trunk/src/main/config/postage.xml
james/postage/trunk/src/main/java/org/apache/james/postage/Main.java
james/postage/trunk/src/main/java/org/apache/james/postage/PostageException.java
james/postage/trunk/src/main/java/org/apache/james/postage/PostageRunner.java
james/postage/trunk/src/main/java/org/apache/james/postage/SamplingException.java
james/postage/trunk/src/main/java/org/apache/james/postage/StartupException.java
james/postage/trunk/src/main/java/org/apache/james/postage/client/POP3Client.java
james/postage/trunk/src/main/java/org/apache/james/postage/client/RemoteManagerClient.java
james/postage/trunk/src/main/java/org/apache/james/postage/client/SMTPClient.java
james/postage/trunk/src/main/java/org/apache/james/postage/configuration/ConfigurationLoader.java
james/postage/trunk/src/main/java/org/apache/james/postage/configuration/MailSender.java
james/postage/trunk/src/main/java/org/apache/james/postage/configuration/PostageConfiguration.java
james/postage/trunk/src/main/java/org/apache/james/postage/configuration/SendProfile.java
james/postage/trunk/src/main/java/org/apache/james/postage/execution/SampleController.java
james/postage/trunk/src/main/java/org/apache/james/postage/execution/Sampler.java
james/postage/trunk/src/main/java/org/apache/james/postage/jmx/JVMResourceSampler.java
james/postage/trunk/src/main/java/org/apache/james/postage/jmx/JVMResourceSamplerWorker.java
james/postage/trunk/src/main/java/org/apache/james/postage/mail/DefaultMailFactory.java
james/postage/trunk/src/main/java/org/apache/james/postage/mail/HeaderConstants.java
james/postage/trunk/src/main/java/org/apache/james/postage/mail/MailFactory.java
james/postage/trunk/src/main/java/org/apache/james/postage/result/JVMResourcesRecord.java
james/postage/trunk/src/main/java/org/apache/james/postage/result/MailProcessingRecord.java
james/postage/trunk/src/main/java/org/apache/james/postage/result/PostageRunnerResult.java
james/postage/trunk/src/main/java/org/apache/james/postage/result/PostageRunnerResultImpl.java
james/postage/trunk/src/main/java/org/apache/james/postage/smtpserver/AvalonToPostageLogger.java
james/postage/trunk/src/main/java/org/apache/james/postage/smtpserver/SMTPMailSink.java
james/postage/trunk/src/main/java/org/apache/james/postage/smtpserver/SimpleMailServer.java
james/postage/trunk/src/main/java/org/apache/james/postage/smtpserver/SimpleSMTPServerConfiguration.java
james/postage/trunk/src/main/java/org/apache/james/postage/smtpserver/SimpleServiceManager.java
james/postage/trunk/src/main/java/org/apache/james/postage/smtpserver/TrivialMailContext.java
james/postage/trunk/src/main/java/org/apache/james/postage/user/UserList.java
Modified: james/postage/trunk/build.xml
URL: http://svn.apache.org/viewvc/james/postage/trunk/build.xml?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/build.xml (original)
+++ james/postage/trunk/build.xml Wed Aug 9 23:37:14 2006
@@ -1,177 +1,185 @@
-<project name="James Postage" default="build" basedir=".">
-
- <!--
- ! Copyright (c) 2006 The Apache Software Foundation. !
- ! All rights reserved. !
- ! !
- ! Licensed under the Apache License, Version 2.0 (the "License"); you !
- ! may not use this file except in compliance with the License. You !
- ! may obtain a copy of the License at: !
- ! !
- ! http://www.apache.org/licenses/LICENSE-2.0 !
- ! !
- ! Unless required by applicable law or agreed to in writing, software !
- ! distributed under the License is distributed on an "AS IS" BASIS, !
- ! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or !
- ! implied. See the License for the specific language governing !
- ! permissions and limitations under the License. !
- -->
-
- <description>James Postage Testing Tool</description>
-
- <!-- CONFIGURE -->
-
- <!--<property file="build.properties" /> -->
-
- <property name="dir.build" value="${basedir}/build"/>
- <property name="dir.build.source" value="${dir.build}/source/"/>
- <property name="dir.build.classes" value="${dir.build}/classes/"/>
- <property name="dir.build.lib" value="${dir.build}/lib/"/>
-
- <property name="dir.source.classes" value="${basedir}/src/main/java/"/>
-
- <!-- TODO change this to a James Distribution based on a JAMES_HOME variable, or let maven do the job -->
- <property name="dir.james.basedir" value="${basedir}/../../../apache/james/trunk/"/>
-
- <property name="force.java1_4.support" value="false"/>
-
- <target name="initialize">
- <tstamp/>
-
- <path id="java.build.classpath">
- <fileset dir="${basedir}/lib/">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${dir.james.basedir}/lib/">
- <include name="*.jar"/>
- </fileset>
- </path>
-
- <path id="java.run.classpath">
- <fileset dir="${basedir}/build/lib/">
- <include name="postage.jar"/>
- </fileset>
- <fileset dir="${basedir}/lib/">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${dir.james.basedir}/lib/">
- <include name="*.jar"/>
- </fileset>
-
- </path>
-
- <!--
- no.gmx property determines, whether or not we can and should compile in Java 5 support (JMX support for the JVM
- parameters like memory, threads).
- if yes, it is probably not possible to run the application in earlier JVMs.
- if false, it is not possible to record memory and thread consumption.
- -->
- <condition property="no.jmx" >
- <or>
- <equals arg1="${ant.java.version}" arg2="1.1" />
- <equals arg1="${ant.java.version}" arg2="1.2" />
- <equals arg1="${ant.java.version}" arg2="1.3" />
- <equals arg1="${ant.java.version}" arg2="1.4" />
- <equals arg1="force.java1_4.support" arg2="true" />
- </or>
- </condition>
-
- </target>
-
- <target name="init-compiler-sources">
- <copy todir="${dir.build.source}" >
- <fileset dir="${dir.source.classes}" >
- <include name="**/*.java" />
- <exclude name="**/JVMResourceSamplerWorker.java" if="no.jmx"/>
- </fileset>
- </copy>
- </target>
-
- <!-- PREPARE LIBRARIES -->
- <target name="fetch-third-party-libs" depends="initialize" >
- <extension id="ext.lib.junit" extensionName="junit-3.8.1.jar" />
-
- <jarlib-resolve property="lib.junit">
- <extension refid="ext.lib.junit"/>
- <url url="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar" destfile="lib/junit.jar"/>
- </jarlib-resolve>
- </target>
-
- <!-- CLEAN UP -->
-
- <target name="clean" depends="initialize" >
- <delete dir="${dir.build}"/>
- </target>
-
-
- <!-- COMPILE -->
-
- <target name="init-paths">
- <mkdir dir="${dir.build}"/>
- <mkdir dir="${dir.build.classes}"/>
-
- <delete dir="${dir.build.source}" failonerror="false"/>
- <mkdir dir="${dir.build.source}"/>
- </target>
-
- <target name="build" depends="initialize, init-paths, init-compiler-sources">
- <echo>Compiling ${ant.project.name}</echo>
-
- <!-- build the src javas -->
- <javac destdir="${dir.build.classes}"
- classpathref="java.build.classpath"
- debug="on" >
- <src path="${dir.build.source}" />
- </javac>
-
- <echo>Finished compiling ${ant.project.name}</echo>
- </target>
-
- <!-- PACKAGE -->
-
- <target name="package" depends="initialize" >
- <mkdir dir="${dir.build}"/>
- <mkdir dir="${dir.build.lib}"/>
-
- <jar file="${dir.build.lib}/postage.jar" basedir="${dir.build.classes}" >
- <manifest >
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="Main-Class" value="org.apache.james.postage.Main"/>
- <section name="common">
- <attribute name="Specification-Title" value="Apache James Postage"/>
- <attribute name="Specification-Version" value="0.1"/>
- <attribute name="Specification-Vendor" value="Apache Software Foundation"/>
- <attribute name="Implementation-Title" value="Postage"/>
- <attribute name="Implementation-Version" value="0.1"/>
- <attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
- </section>
- </manifest>
- </jar>
- <!-- TODO add Apache Manifest Info -->
- <tstamp>
- <format property="end.time" pattern="HH:mm:ss"/>
- </tstamp>
- <echo>Finished: ${end.time}</echo>
- </target>
-
- <!-- RUN -->
-
- <target name="run" depends="initialize" >
- <java classname="org.apache.james.postage.Main" fork="true">
- <classpath refid="java.run.classpath"/>
- <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.crimson.jaxp.DocumentBuilderFactoryImpl" />
- <arg value="./conf/postage.xml" />
- <arg value="release" />
- </java>
- </target>
-
- <target name="run-debug" depends="initialize" >
- <java classname="org.apache.james.postage.Main" fork="true">
- <classpath refid="java.run.classpath"/>
- <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.crimson.jaxp.DocumentBuilderFactoryImpl" />
- <arg value="./conf/postage.xml" />
- <arg value="debug" />
- </java>
- </target>
-
-</project>
+<project name="James Postage" default="build" basedir=".">
+
+<!---------------------------------------------------------------
+ ! Licensed to the Apache Software Foundation (ASF) under one !
+ ! or more contributor license agreements. See the NOTICE file !
+ ! distributed with this work for additional information !
+ ! regarding copyright ownership. The ASF licenses this file !
+ ! to you under the Apache License, Version 2.0 (the !
+ ! "License"); you may not use this file except in compliance !
+ ! with the License. You may obtain a copy of the License at !
+ ! !
+ ! http://www.apache.org/licenses/LICENSE-2.0 !
+ ! !
+ ! Unless required by applicable law or agreed to in writing, !
+ ! software distributed under the License is distributed on an !
+ ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY !
+ ! KIND, either express or implied. See the License for the !
+ ! specific language governing permissions and limitations !
+ ! under the License. !
+ ---------------------------------------------------------------->
+
+ <description>James Postage Testing Tool</description>
+
+ <!-- CONFIGURE -->
+
+ <!--<property file="build.properties" /> -->
+
+ <property name="dir.build" value="${basedir}/build"/>
+ <property name="dir.build.source" value="${dir.build}/source/"/>
+ <property name="dir.build.classes" value="${dir.build}/classes/"/>
+ <property name="dir.build.lib" value="${dir.build}/lib/"/>
+
+ <property name="dir.source.classes" value="${basedir}/src/main/java/"/>
+
+ <!-- TODO change this to a James Distribution based on a JAMES_HOME variable, or let maven do the job -->
+ <property name="dir.james.basedir" value="${basedir}/../../../apache/james/trunk/"/>
+
+ <property name="force.java1_4.support" value="false"/>
+
+ <target name="initialize">
+ <tstamp/>
+
+ <path id="java.build.classpath">
+ <fileset dir="${basedir}/lib/">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${dir.james.basedir}/lib/">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
+ <path id="java.run.classpath">
+ <fileset dir="${basedir}/build/lib/">
+ <include name="postage.jar"/>
+ </fileset>
+ <fileset dir="${basedir}/lib/">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${dir.james.basedir}/lib/">
+ <include name="*.jar"/>
+ </fileset>
+
+ </path>
+
+ <!--
+ no.gmx property determines, whether or not we can and should compile in Java 5 support (JMX support for the JVM
+ parameters like memory, threads).
+ if yes, it is probably not possible to run the application in earlier JVMs.
+ if false, it is not possible to record memory and thread consumption.
+ -->
+ <condition property="no.jmx" >
+ <or>
+ <equals arg1="${ant.java.version}" arg2="1.1" />
+ <equals arg1="${ant.java.version}" arg2="1.2" />
+ <equals arg1="${ant.java.version}" arg2="1.3" />
+ <equals arg1="${ant.java.version}" arg2="1.4" />
+ <equals arg1="force.java1_4.support" arg2="true" />
+ </or>
+ </condition>
+
+ </target>
+
+ <target name="init-compiler-sources">
+ <copy todir="${dir.build.source}" >
+ <fileset dir="${dir.source.classes}" >
+ <include name="**/*.java" />
+ <exclude name="**/JVMResourceSamplerWorker.java" if="no.jmx"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <!-- PREPARE LIBRARIES -->
+ <target name="fetch-third-party-libs" depends="initialize" >
+ <extension id="ext.lib.junit" extensionName="junit-3.8.1.jar" />
+
+ <jarlib-resolve property="lib.junit">
+ <extension refid="ext.lib.junit"/>
+ <url url="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar" destfile="lib/junit.jar"/>
+ </jarlib-resolve>
+ </target>
+
+ <!-- CLEAN UP -->
+
+ <target name="clean" depends="initialize" >
+ <delete dir="${dir.build}"/>
+ </target>
+
+
+ <!-- COMPILE -->
+
+ <target name="init-paths">
+ <mkdir dir="${dir.build}"/>
+ <mkdir dir="${dir.build.classes}"/>
+
+ <delete dir="${dir.build.source}" failonerror="false"/>
+ <mkdir dir="${dir.build.source}"/>
+ </target>
+
+ <target name="build" depends="initialize, init-paths, init-compiler-sources">
+ <echo>Compiling ${ant.project.name}</echo>
+
+ <!-- build the src javas -->
+ <javac destdir="${dir.build.classes}"
+ classpathref="java.build.classpath"
+ debug="on" >
+ <src path="${dir.build.source}" />
+ </javac>
+
+ <echo>Finished compiling ${ant.project.name}</echo>
+ </target>
+
+ <!-- PACKAGE -->
+
+ <target name="package" depends="initialize" >
+ <mkdir dir="${dir.build}"/>
+ <mkdir dir="${dir.build.lib}"/>
+
+ <jar file="${dir.build.lib}/postage.jar" basedir="${dir.build.classes}" >
+ <manifest >
+ <attribute name="Built-By" value="${user.name}"/>
+ <attribute name="Main-Class" value="org.apache.james.postage.Main"/>
+ <section name="common">
+ <attribute name="Specification-Title" value="Apache James Postage"/>
+ <attribute name="Specification-Version" value="0.1"/>
+ <attribute name="Specification-Vendor" value="Apache Software Foundation"/>
+ <attribute name="Implementation-Title" value="Postage"/>
+ <attribute name="Implementation-Version" value="0.1"/>
+ <attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
+ </section>
+ </manifest>
+ </jar>
+ <!-- TODO add Apache Manifest Info -->
+ <tstamp>
+ <format property="end.time" pattern="HH:mm:ss"/>
+ </tstamp>
+ <echo>Finished: ${end.time}</echo>
+ </target>
+
+ <!-- RUN -->
+
+ <target name="run" depends="initialize" >
+ <java classname="org.apache.james.postage.Main" fork="true">
+ <classpath refid="java.run.classpath"/>
+
+ <!-- TODO: document, in which runtime environments this property is needed for loading XML conf files -->
+ <!-- <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.crimson.jaxp.DocumentBuilderFactoryImpl" /> -->
+
+ <arg value="./src/main/config/postage.xml" />
+ <arg value="release" />
+ </java>
+ </target>
+
+ <target name="run-debug" depends="initialize" >
+ <java classname="org.apache.james.postage.Main" fork="true">
+ <classpath refid="java.run.classpath"/>
+
+ <!-- TODO: document, in which runtime environments this property is needed for loading XML conf files -->
+ <!-- <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.crimson.jaxp.DocumentBuilderFactoryImpl" /> -->
+
+ <arg value="./src/main/config/postage.xml" />
+ <arg value="debug" />
+ </java>
+ </target>
+
+</project>
Modified: james/postage/trunk/src/main/config/postage.xml
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/config/postage.xml?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/config/postage.xml (original)
+++ james/postage/trunk/src/main/config/postage.xml Wed Aug 9 23:37:14 2006
@@ -1,4 +1,24 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<!---------------------------------------------------------------
+ ! Licensed to the Apache Software Foundation (ASF) under one !
+ ! or more contributor license agreements. See the NOTICE file !
+ ! distributed with this work for additional information !
+ ! regarding copyright ownership. The ASF licenses this file !
+ ! to you under the Apache License, Version 2.0 (the !
+ ! "License"); you may not use this file except in compliance !
+ ! with the License. You may obtain a copy of the License at !
+ ! !
+ ! http://www.apache.org/licenses/LICENSE-2.0 !
+ ! !
+ ! Unless required by applicable law or agreed to in writing, !
+ ! software distributed under the License is distributed on an !
+ ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY !
+ ! KIND, either express or implied. See the License for the !
+ ! specific language governing permissions and limitations !
+ ! under the License. !
+ ---------------------------------------------------------------->
+
<postage>
<!-- each configuration has 1..n scenarios, each representing a complete run.
one/some/all scenarios can be chosen to be run sequentially using the id which must be unique.
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/Main.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/Main.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/Main.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/Main.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage;
import org.apache.commons.configuration.ConfigurationException;
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/PostageException.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/PostageException.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/PostageException.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/PostageException.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage;
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/PostageRunner.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/PostageRunner.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/PostageRunner.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/PostageRunner.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage;
@@ -40,7 +42,7 @@
import java.io.File;
/**
- * central controlling class for the testing process. starts all workers, collects data and stops when time is out.
+ * central controlling class for the testing process. starts all workers, collects data and stops when time is out.
* relates to one and only one Scenario section from the configuration file.
*/
public class PostageRunner implements Runnable {
@@ -75,23 +77,23 @@
* sends messages to James in two ways:
* 1. internal users relay to internal or external users using (inbound) SMTP
* 2. external users send mail to internal users using (inbound) SMTP
- *
+ *
* the correct mail delivery is checked in two ways:
* 1. by checking internal users mails using POP3
* 2. by checking mail to external users by receiving all mail forwarded by James to outbound/forwarded SMTP
- *
+ *
* @param postageConfiguration
*/
public PostageRunner(PostageConfiguration postageConfiguration) {
m_postageConfiguration = postageConfiguration;
-
+
int totalMailsPerMin = m_postageConfiguration.getTotalMailsPerMin();
int durationMinutes = m_postageConfiguration.getDurationMinutes();
-
+
m_postageConfiguration.addDescriptionItem("mails_per_min", "" + totalMailsPerMin);
m_postageConfiguration.addDescriptionItem("totally_running_min", "" + durationMinutes);
m_postageConfiguration.addDescriptionItem("totally_mails_target", "" + totalMailsPerMin * durationMinutes);
-
+
m_results.setEnvironmentDescription(m_postageConfiguration.getDescriptionItems());
}
@@ -129,7 +131,7 @@
log.error("recording data was aborted!", e);
}
- // has to be set by method stopRecording()
+ // has to be set by method stopRecording()
// m_currentPhase = PHASE_COMPLETED;
// writeMatchedMailResults (remaining) collected data
@@ -140,7 +142,7 @@
private void prepareResultFile(String canonicalMailResultFileName) {
File writeCandidate = new File(canonicalMailResultFileName);
if (writeCandidate.exists()) {
- // rename existing result file from previous run
+ // rename existing result file from previous run
// to something like "result___.cvs.64906993" to make place for new results
writeCandidate.renameTo(new File(canonicalMailResultFileName + "." + writeCandidate.lastModified()));
}
@@ -191,7 +193,7 @@
*/
private void oneMinuteCheckpoint() {
m_minutesRunning++;
- log.info("reached checkpoint after " + m_minutesRunning + " of "
+ log.info("reached checkpoint after " + m_minutesRunning + " of "
+ m_postageConfiguration.getDurationMinutes() + " minute(s) running.");
//TODO do this in a separate thread?
@@ -208,7 +210,7 @@
}
}
if (m_inboundMailingController != null) m_inboundMailingController.stop();
-
+
if (m_outboundMailingInterceptorController != null) m_outboundMailingInterceptorController.stop();
m_currentPhase = PHASE_COMPLETED;
}
@@ -230,7 +232,7 @@
String filenameErrors = getCanonicalErrorsFileName();
m_results.writeResults(filenameMailResult, filenameJVMStatistics, filenameErrors, flushMatchedMailOnly);
}
-
+
public String getCanonicalMailResultFileName() {
return "postage_mailResults." + m_postageConfiguration.getId() + ".csv";
}
@@ -277,7 +279,7 @@
}
if (m_currentPhase == PHASE_COMPLETED) {
- // walk through all internal users and check for un-matched mails
+ // walk through all internal users and check for un-matched mails
log.info("checking all internal accounts for unmatched mail...");
m_inboundMailingChecker.doMatchMailForAllUsers();
log.info("...done checking internal accounts");
@@ -432,7 +434,7 @@
}
/**
- * aquire a list of all existing internal James accounts
+ * aquire a list of all existing internal James accounts
* @return Set<String>, each String a username
*/
private Set getExistingUsers(String host, int remoteManagerPort, String remoteManagerUsername, String remoteManagerPassword) {
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/SamplingException.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/SamplingException.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/SamplingException.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/SamplingException.java Wed Aug 9 23:37:14 2006
@@ -1,25 +1,27 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage;
/**
- * base exception for all the recording-data-stuff
+ * base exception for all the recording-data-stuff
*/
public class SamplingException extends PostageException {
public SamplingException() {
@@ -31,7 +33,7 @@
}
public SamplingException(Throwable cause) {
- super(cause);
+ super(cause);
}
public SamplingException(String message, Throwable cause) {
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/StartupException.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/StartupException.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/StartupException.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/StartupException.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage;
@@ -24,11 +26,11 @@
}
public StartupException(String message) {
- super(message);
+ super(message);
}
public StartupException(Throwable cause) {
- super(cause);
+ super(cause);
}
public StartupException(String message, Throwable cause) {
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/client/POP3Client.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/client/POP3Client.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/client/POP3Client.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/client/POP3Client.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage.client;
@@ -200,7 +202,7 @@
MimeMultipart mimeMultipart = new MimeMultipart(message.getDataHandler().getDataSource());
- // this assumes, there is zero or one part each, either of type plaintext or binary
+ // this assumes, there is zero or one part each, either of type plaintext or binary
mailProcessingRecord.setByteReceivedText(getPartSize(mimeMultipart, "text/plain"));
mailProcessingRecord.setByteReceivedBinary(getPartSize(mimeMultipart, "application/octet-stream"));
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/client/RemoteManagerClient.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/client/RemoteManagerClient.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/client/RemoteManagerClient.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/client/RemoteManagerClient.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage.client;
@@ -107,7 +109,7 @@
public List readAnswer() {
return readAnswer(0);
}
-
+
protected List readAnswer(int numLines) {
List allAnswerLines = new ArrayList();
try {
@@ -118,7 +120,7 @@
}
} else {
readline(allAnswerLines);
-
+
while (m_reader.ready()) {
while (m_reader.ready()) {
readline(allAnswerLines);
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/client/SMTPClient.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/client/SMTPClient.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/client/SMTPClient.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/client/SMTPClient.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage.client;
@@ -35,7 +37,7 @@
/**
* connects as a SMTP client and handles all mail according to its configuration.
- * it is threadsafe and reentrant and thus can be reused over multiple parallel client session
+ * it is threadsafe and reentrant and thus can be reused over multiple parallel client session
*/
public class SMTPClient implements Sampler {
@@ -110,7 +112,7 @@
mailProcessingRecord.setMailId(MailProcessingRecord.getNextId());
m_results.addNewMailRecord(mailProcessingRecord);
mailProcessingRecord.setTimeConnectStart(System.currentTimeMillis());
-
+
Message message = null;
try {
try {
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/configuration/ConfigurationLoader.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/configuration/ConfigurationLoader.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/configuration/ConfigurationLoader.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/configuration/ConfigurationLoader.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage.configuration;
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/configuration/MailSender.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/configuration/MailSender.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/configuration/MailSender.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/configuration/MailSender.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage.configuration;
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/configuration/PostageConfiguration.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/configuration/PostageConfiguration.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/configuration/PostageConfiguration.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/configuration/PostageConfiguration.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage.configuration;
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/configuration/SendProfile.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/configuration/SendProfile.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/configuration/SendProfile.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/configuration/SendProfile.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage.configuration;
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/execution/SampleController.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/execution/SampleController.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/execution/SampleController.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/execution/SampleController.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage.execution;
@@ -26,7 +28,7 @@
import java.util.TimerTask;
/**
- * initiate one shot of sample data generation
+ * initiate one shot of sample data generation
*/
public class SampleController extends TimerTask {
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/execution/Sampler.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/execution/Sampler.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/execution/Sampler.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/execution/Sampler.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage.execution;
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/jmx/JVMResourceSampler.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/jmx/JVMResourceSampler.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/jmx/JVMResourceSampler.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/jmx/JVMResourceSampler.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage.jmx;
@@ -29,7 +31,7 @@
* wraps JVMResourceSamplerWorker to allow J2SE 1.4 compatibility
* does not access this class through direct reference, only through reflection
* in the case this compatibility is removed, simply inline the Worker class
- *
+ *
* @see org.apache.james.postage.jmx.JVMResourceSamplerWorker for how to configure James to be JVM-JMX agnostic
*/
public class JVMResourceSampler implements Sampler {
@@ -41,7 +43,7 @@
public static boolean isJMXAvailable() {
try {
- // this class is only present, when the package _is run_ at least under Java 5
+ // this class is only present, when the package _is run_ at least under Java 5
Class jmxFactoryClass = Class.forName("javax.management.remote.JMXConnectorFactory");
} catch (ClassNotFoundException e) {
return false;
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/jmx/JVMResourceSamplerWorker.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/jmx/JVMResourceSamplerWorker.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/jmx/JVMResourceSamplerWorker.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/jmx/JVMResourceSamplerWorker.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage.jmx;
@@ -36,15 +38,15 @@
/**
* the peek into the James JVM is done using the build-in management (JMX) of J2SE 5 (and probably later)
- * you must start James under a J2SE 5 compatible JVM and
+ * you must start James under a J2SE 5 compatible JVM and
* add some system properties to the phoenix.[sh|bat] file (all on one line):
- * JVM_OPTS="-Djava.ext.dirs=$JVM_EXT_DIRS
- * -Dcom.sun.management.jmxremote
- * -Dcom.sun.management.jmxremote.ssl=false
- * -Dcom.sun.management.jmxremote.authenticate=false
+ * JVM_OPTS="-Djava.ext.dirs=$JVM_EXT_DIRS
+ * -Dcom.sun.management.jmxremote
+ * -Dcom.sun.management.jmxremote.ssl=false
+ * -Dcom.sun.management.jmxremote.authenticate=false
* -Dcom.sun.management.jmxremote.port=10201 "
- *
- * this class does not even compile on Java versions before JSE 5.
+ *
+ * this class does not even compile on Java versions before JSE 5.
*/
public class JVMResourceSamplerWorker implements Sampler {
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/mail/DefaultMailFactory.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/mail/DefaultMailFactory.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/mail/DefaultMailFactory.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/mail/DefaultMailFactory.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage.mail;
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/mail/HeaderConstants.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/mail/HeaderConstants.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/mail/HeaderConstants.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/mail/HeaderConstants.java Wed Aug 9 23:37:14 2006
@@ -1,19 +1,21 @@
-/***********************************************************************
- * Copyright (c) 2006 The Apache Software Foundation. *
- * All rights reserved. *
- * ------------------------------------------------------------------- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you *
- * may not use this file except in compliance with the License. You *
- * may obtain a copy of the License at: *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, software *
- * distributed under the License is distributed on an "AS IS" BASIS, *
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
- * implied. See the License for the specific language governing *
- * permissions and limitations under the License. *
- ***********************************************************************/
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
package org.apache.james.postage.mail;
Modified: james/postage/trunk/src/main/java/org/apache/james/postage/mail/MailFactory.java
URL: http://svn.apache.org/viewvc/james/postage/trunk/src/main/java/org/apache/james/postage/mail/MailFactory.java?rev=430284&r1=430283&r2=430284&view=diff
==============================================================================
--- james/postage/trunk/src/main/java/org/apache/james/postage/mail/MailFactory.java (original)
+++ james/postage/trunk/src/main/java/org/apache/james/postage/mail/MailFactory.java Wed Aug 9 23:37:14 2006
@@ -1,3 +1,22 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
+
package org.apache.james.postage.mail;
import org.apache.james.postage.configuration.MailSender;
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org