|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.plugins.mail.DryRunMessageHandlerExecutionMonitor
public class DryRunMessageHandlerExecutionMonitor
MessageHandlerExecutionMonitor used in test run.
Constructor Summary | |
---|---|
DryRunMessageHandlerExecutionMonitor()
|
Method Summary | |
---|---|
void |
error(String error)
Report an error. |
void |
error(String error,
Throwable e)
Report an error. |
List<String> |
getAllMessages()
|
Iterable<String> |
getErrorMessages()
|
int |
getNumMessages()
|
int |
getNumMessagesRejected()
|
boolean |
hasErrors()
|
void |
info(String info)
Report valuable information for JIRA admin |
void |
info(String info,
Throwable e)
Report valuable information for JIRA admin |
void |
messageRejected(javax.mail.Message message,
String reason)
Reports the rejection of the message |
void |
nextMessage(javax.mail.Message message)
Reports that given message is about to be dispatched to the message handler. |
void |
setNumMessages(int count)
Report the number of messages ready for processing by the handler in the current run |
void |
warning(String warning)
Report a warning |
void |
warning(String warning,
Throwable e)
Report a warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DryRunMessageHandlerExecutionMonitor()
Method Detail |
---|
public void error(String error, @Nullable Throwable e)
MessageHandlerErrorCollector
error
in interface MessageHandlerErrorCollector
error
- a serious problem which usually makes further hanling of given message pointlesse
- associated throwable or null
public void error(String error)
MessageHandlerErrorCollector
error
in interface MessageHandlerErrorCollector
error
- a serious problem which usually makes further hanling of given message pointlesspublic void info(String info)
MessageHandlerErrorCollector
info
in interface MessageHandlerErrorCollector
info
- information message (something expected, OK, normal)public void info(String info, @Nullable Throwable e)
MessageHandlerErrorCollector
info
in interface MessageHandlerErrorCollector
info
- information message (something expected, OK, normal)e
- associated throwable or null
public void warning(String warning)
MessageHandlerErrorCollector
warning
in interface MessageHandlerErrorCollector
warning
- a warning, but nothing critical for the handlerpublic void warning(String warning, @Nullable Throwable e)
MessageHandlerErrorCollector
warning
in interface MessageHandlerErrorCollector
warning
- a warning, but nothing critical for the handlere
- associated throwable or null
public boolean hasErrors()
public void messageRejected(javax.mail.Message message, String reason)
MessageHandlerExecutionMonitor
messageRejected
in interface MessageHandlerExecutionMonitor
message
- the message which has been rejected (should be the one reported before with nextMessage() method.reason
- the reason of the rejection (may be displayed in the web UI, so translated messages
are desirable here)public void nextMessage(javax.mail.Message message)
MessageHandlerExecutionMonitor
nextMessage
in interface MessageHandlerExecutionMonitor
message
- the message which is about to be dispatched to the handler.public List<String> getAllMessages()
public void setNumMessages(int count)
MessageHandlerExecutionMonitor
setNumMessages
in interface MessageHandlerExecutionMonitor
count
- number of messages ready for processing by the handler in the current runpublic int getNumMessages()
public int getNumMessagesRejected()
public Iterable<String> getErrorMessages()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |