er.javamail
Class ERMailSender.Stats
java.lang.Object
er.javamail.ERMailSender.Stats
- Enclosing class:
- ERMailSender
public class ERMailSender.Stats
- extends java.lang.Object
This class is about logging mail event for stats purposes. More stats to come in the future.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ERMailSender.Stats
public ERMailSender.Stats()
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 com.webobjects.foundation.NSTimestamp lastResetTime()
- Returns:
- the timestamp that respresents when the stats object was reset.
usedMemory
public long usedMemory()
formattedUsedMemory
public java.lang.String formattedUsedMemory()
peakMemoryUsage
public double peakMemoryUsage()
formattedPeakMemoryUsage
public java.lang.String formattedPeakMemoryUsage()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- a string representation of the Stats object.
Copyright © 2002 – 2007 Project Wonder.