org.apache.james.postage
Class PostageRunner

java.lang.Object
  extended by org.apache.james.postage.PostageRunner
All Implemented Interfaces:
java.lang.Runnable

public class PostageRunner
extends java.lang.Object
implements java.lang.Runnable

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.


Field Summary
static int PHASE_ABORTED
           
static int PHASE_COMPLETED
           
static int PHASE_CREATED
           
static int PHASE_RUNNING
           
static int PHASE_STARTING
           
 
Constructor Summary
PostageRunner(PostageConfiguration postageConfiguration)
          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
 
Method Summary
 java.lang.String getCanonicalErrorsFileName()
           
 java.lang.String getCanonicalJVMStatisticsFileName()
           
 java.lang.String getCanonicalMailResultFileName()
           
 int getCurrentPhase()
          for checking the running status of this PostageRunner.
static java.lang.String getMessageIdPrefix()
           
 PostageRunnerResult getResult()
           
 void run()
           
 void terminate()
          interrupt the runner from outside
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PHASE_CREATED

public static final int PHASE_CREATED
See Also:
Constant Field Values

PHASE_STARTING

public static final int PHASE_STARTING
See Also:
Constant Field Values

PHASE_RUNNING

public static final int PHASE_RUNNING
See Also:
Constant Field Values

PHASE_ABORTED

public static final int PHASE_ABORTED
See Also:
Constant Field Values

PHASE_COMPLETED

public static final int PHASE_COMPLETED
See Also:
Constant Field Values
Constructor Detail

PostageRunner

public PostageRunner(PostageConfiguration postageConfiguration)
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

Parameters:
postageConfiguration -
Method Detail

getMessageIdPrefix

public static java.lang.String getMessageIdPrefix()

getCurrentPhase

public int getCurrentPhase()
for checking the running status of this PostageRunner.

Returns:
one of the values PHASE_CREATED (0), PHASE_STARTING (1), PHASE_RUNNING (2), PHASE_ABORTED (3), PHASE_COMPLETED (4)

run

public void run()
Specified by:
run in interface java.lang.Runnable

getResult

public PostageRunnerResult getResult()

terminate

public void terminate()
interrupt the runner from outside


getCanonicalMailResultFileName

public java.lang.String getCanonicalMailResultFileName()

getCanonicalJVMStatisticsFileName

public java.lang.String getCanonicalJVMStatisticsFileName()

getCanonicalErrorsFileName

public java.lang.String getCanonicalErrorsFileName()


Copyright © 2006-2007 The Apache Software Foundation. All Rights Reserved.