org.apache.james.postage.result
Interface PostageRunnerResult

All Known Implementing Classes:
PostageRunnerResultImpl

public interface PostageRunnerResult

collects and writes all result data for one scenario


Method Summary
 void addError(int errorNumber, java.lang.String errorMessage)
           
 void addJVMResult(JVMResourcesRecord jvmResourcesRecord)
           
 void addNewMailRecord(MailProcessingRecord mailProcessingRecord)
          add a record to be matched later on
 long getErrorCount()
           
 long getMatchedMails()
           
 long getTimestampFirstResult()
           
 long getTimestampLastResult()
           
 long getUnmatchedMails()
           
 long getValidMails()
           
 MailProcessingRecord matchMailRecord(MailProcessingRecord mailProcessingRecord)
          retrieve the matching record, if existing
 void recordValidatedMatch(MailProcessingRecord matchedAndMergedRecord)
          count the valid matches
 void setEnvironmentDescription(java.util.Map descriptionItems)
           
 void writeResults(java.lang.String filenameMailResults, java.lang.String filenameJVMStatistics, java.lang.String filenameErros, boolean flushMatchedMailOnly)
           
 

Method Detail

setEnvironmentDescription

void setEnvironmentDescription(java.util.Map descriptionItems)

addNewMailRecord

void addNewMailRecord(MailProcessingRecord mailProcessingRecord)
add a record to be matched later on

Parameters:
mailProcessingRecord -

matchMailRecord

MailProcessingRecord matchMailRecord(MailProcessingRecord mailProcessingRecord)
retrieve the matching record, if existing

Parameters:
mailProcessingRecord - record for whom a match is searched
Returns:
null, if no match is found or matching and merged record otherwise

recordValidatedMatch

void recordValidatedMatch(MailProcessingRecord matchedAndMergedRecord)
count the valid matches

Parameters:
mailProcessingRecord -

addJVMResult

void addJVMResult(JVMResourcesRecord jvmResourcesRecord)

getUnmatchedMails

long getUnmatchedMails()

getMatchedMails

long getMatchedMails()

getValidMails

long getValidMails()

getTimestampFirstResult

long getTimestampFirstResult()

getTimestampLastResult

long getTimestampLastResult()

addError

void addError(int errorNumber,
              java.lang.String errorMessage)

getErrorCount

long getErrorCount()

writeResults

void writeResults(java.lang.String filenameMailResults,
                  java.lang.String filenameJVMStatistics,
                  java.lang.String filenameErros,
                  boolean flushMatchedMailOnly)


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