Project Wonder 2.0

er.javamail
Class ERMailSender.Stats

java.lang.Object
  extended byer.javamail.ERMailSender.Stats
Enclosing class:
ERMailSender

public class ERMailSender.Stats
extends Object

This class is about logging mail event for stats purposes. More stats to come in the future.


Constructor Summary
ERMailSender.Stats()
           
 
Method Summary
 int currentQueueSize()
           
 int errorCount()
           
 String formattedPeakMemoryUsage()
           
 String formattedUsedMemory()
           
 NSTimestamp lastResetTime()
           
 int mailCount()
           
 double peakMemoryUsage()
           
 void reset()
          Resets statistics information
 String toString()
           
 long usedMemory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ERMailSender.Stats

public ERMailSender.Stats()
Method Detail

reset

public void reset()
Resets statistics information


errorCount

public int errorCount()
Returns:
the count of error that were encountered during mail seonding process

mailCount

public int mailCount()
Returns:
the total count of mails being sent. This number does not take in accordance the number of errors. To get the actual count of mail sent without error use 'errorCount - mailCount'.

currentQueueSize

public int currentQueueSize()
Returns:
the current queue size. This method is useful for simplistic load balancing between apps that are supposed to send mails

lastResetTime

public NSTimestamp lastResetTime()
Returns:
the timestamp that respresents when the stats object was reset.

usedMemory

public long usedMemory()

formattedUsedMemory

public String formattedUsedMemory()

peakMemoryUsage

public double peakMemoryUsage()

formattedPeakMemoryUsage

public String formattedPeakMemoryUsage()

toString

public String toString()
Returns:
a string representation of the Stats object.

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.