org.apache.james.postage.client
Class POP3Client

java.lang.Object
  extended by org.apache.james.postage.client.POP3Client
All Implemented Interfaces:
Sampler

public class POP3Client
extends java.lang.Object
implements Sampler

acts like a MUA using POP3 protocol.
fetches all mails for one (all) users and initiates adding to results


Constructor Summary
POP3Client(java.lang.String host, int port, UserList internalUsers, PostageRunnerResult results)
           
 
Method Summary
 boolean checkAvailability()
          checks, if the configured POP3 services is accessable
 void doMatchMailForAllUsers()
          used after completing with regular test scenario. tries to collect all mails, which are left unprocessed by the random access. this is done by iterating over all user accounts, looking for mail
 void doSample()
          take one POP3 sample for a random user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POP3Client

public POP3Client(java.lang.String host,
                  int port,
                  UserList internalUsers,
                  PostageRunnerResult results)
Method Detail

checkAvailability

public boolean checkAvailability()
                          throws StartupException
checks, if the configured POP3 services is accessable

Throws:
StartupException

doSample

public void doSample()
              throws SamplingException
take one POP3 sample for a random user

Specified by:
doSample in interface Sampler
Throws:
SamplingException

doMatchMailForAllUsers

public void doMatchMailForAllUsers()
used after completing with regular test scenario. tries to collect all mails, which are left unprocessed by the random access. this is done by iterating over all user accounts, looking for mail



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