@ComponentProfile(summary="The default message error digester that exposes some minimum metrics via JMX", tag="error-handling,base") public class StandardMessageErrorDigester extends MessageErrorDigesterImp
In the adapter configuration file this class is aliased as standard-message-error-digester which is the preferred alternative to the fully qualified classname when building your configuration.
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
StandardMessageErrorDigester() |
StandardMessageErrorDigester(java.lang.String uniqueId) |
StandardMessageErrorDigester(java.lang.String uniqueId,
int max) |
Modifier and Type | Method and Description |
---|---|
void |
digest(AdaptrisMessage msg)
Digest the error that failed.
|
MessageErrorDigest |
getDigest() |
int |
getDigestMaxSize() |
int |
getTotalErrorCount()
Get the total number of errors that were recorded by this Digester implementatino.
|
void |
init()
Initialises the component.
|
boolean |
remove(MessageDigestErrorEntry entry) |
boolean |
remove(MessageDigestErrorEntry entry,
boolean attemptFileDelete) |
boolean |
remove(java.lang.String msgId) |
boolean |
remove(java.lang.String msgId,
boolean attemptFileDelete) |
void |
setDigestMaxSize(int max)
The maximum number of messages you want to hold in this digest.
|
close, getUniqueId, prepare, setUniqueId, start, stop
public StandardMessageErrorDigester()
public StandardMessageErrorDigester(java.lang.String uniqueId)
public StandardMessageErrorDigester(java.lang.String uniqueId, int max)
public void init() throws CoreException
ComponentLifecycle
Component initialisation includes config verification, creation of connections etc.
init
in interface ComponentLifecycle
init
in class MessageErrorDigesterImp
CoreException
- wrapping any underlying Exception
spublic void digest(AdaptrisMessage msg)
MessageErrorDigester
public void setDigestMaxSize(int max)
public int getDigestMaxSize()
public int getTotalErrorCount()
MessageErrorDigester
public MessageErrorDigest getDigest()
public boolean remove(MessageDigestErrorEntry entry)
public boolean remove(java.lang.String msgId)
public boolean remove(MessageDigestErrorEntry entry, boolean attemptFileDelete)
public boolean remove(java.lang.String msgId, boolean attemptFileDelete)