|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.log4j.AppenderSkeleton
org.apache.log4j.net.SMTPAppender
nl.knowledgeplaza.util.log4j.SMTPAppender
public class SMTPAppender
This class is an extention upon the regular SMTPAppender. It uses the EvaluatorClass to accumulate events until the buffer is full and then sends them in bulk. Furthermore is hooks into the JVM's shutdown notification to be able to flush the remaining events (buffer is not full) upon shutdown.
| Nested Class Summary | |
|---|---|
static class |
SMTPAppender.EvaluatorClass
This class holds off on sending the mails until the buffer is full |
| Field Summary |
|---|
| Fields inherited from class org.apache.log4j.net.SMTPAppender |
|---|
cb, evaluator, msg |
| Fields inherited from class org.apache.log4j.AppenderSkeleton |
|---|
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
| Constructor Summary | |
|---|---|
SMTPAppender()
Setup the appender |
|
| Method Summary | |
|---|---|
void |
setEvaluatorClass(java.lang.String value)
This is not allowed |
| Methods inherited from class org.apache.log4j.net.SMTPAppender |
|---|
activateOptions, addressMessage, append, checkEntryConditions, close, createSession, getBcc, getBufferSize, getCc, getEvaluator, getEvaluatorClass, getFrom, getLocationInfo, getSMTPDebug, getSMTPHost, getSMTPPassword, getSMTPUsername, getSubject, getTo, parseUnrecognizedElement, requiresLayout, sendBuffer, setBcc, setBufferSize, setCc, setEvaluator, setFrom, setLocationInfo, setSMTPDebug, setSMTPHost, setSMTPPassword, setSMTPUsername, setSubject, setTo |
| Methods inherited from class org.apache.log4j.AppenderSkeleton |
|---|
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SMTPAppender()
| Method Detail |
|---|
public void setEvaluatorClass(java.lang.String value)
setEvaluatorClass in class org.apache.log4j.net.SMTPAppender
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||