public abstract class NotifyingInterceptorByCount extends NotifyingInterceptor
WorkflowInterceptorImpl.WorkflowInterceptorException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_MESSAGE_COUNT
Key within the properties containing the total message count
|
static java.lang.String |
KEY_MESSAGE_ERROR
Key within the properties containing the total number of errors.
|
static java.lang.String |
KEY_MESSAGE_SIZE
Key within the properties containing the total size of errors.
|
static java.lang.String |
KEY_TIMESLICE_END
Key within the properties containing the end time for the timeslice.
|
static java.lang.String |
KEY_TIMESLICE_START
Key within the properties containing the end time for the timeslice.
|
log
Constructor and Description |
---|
NotifyingInterceptorByCount() |
Modifier and Type | Method and Description |
---|---|
protected static java.util.Properties |
asProperties(MessageStatistic stat) |
protected MessageStatistic |
getAndIncrementStatistic(AdaptrisMessage inputMsg,
AdaptrisMessage outputMsg) |
protected MessageStatistic |
getCurrentTimeSlice() |
TimeInterval |
getTimesliceDuration() |
void |
setTimesliceDuration(TimeInterval timesliceDuration)
Set the duration of each timeslice for gathering.
|
changeState, getUniqueId, parentChannel, parentWorkflow, prepare, registerParentChannel, registerParentWorkflow, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setUniqueId, wasSuccessful
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
workflowEnd, workflowStart
close, init, start, stop
public static final java.lang.String KEY_MESSAGE_COUNT
public static final java.lang.String KEY_MESSAGE_ERROR
public static final java.lang.String KEY_MESSAGE_SIZE
public static final java.lang.String KEY_TIMESLICE_END
public static final java.lang.String KEY_TIMESLICE_START
protected MessageStatistic getCurrentTimeSlice()
protected static java.util.Properties asProperties(MessageStatistic stat)
protected MessageStatistic getAndIncrementStatistic(AdaptrisMessage inputMsg, AdaptrisMessage outputMsg)
public TimeInterval getTimesliceDuration()
public void setTimesliceDuration(TimeInterval timesliceDuration)
timesliceDuration
- the timeslice duration, default is 1 minute if not explicitly
specified.