public interface TsiErrorPolicy
TsiErrors. A policy is needed for non-specific errors (those that
have no individual class) to determine their lag and the maximum number of
occurences.
The general error-reset policy of Pilar errors is as follows:
getResetMax(stella.net.tpl.TsiError) is set to zero.getResetLag(stella.net.tpl.TsiError) in the past.getAccumulateCount(stella.net.tpl.TsiError), all
accumulated errors may not span a time span shorter than
getAccumulateSpan(stella.net.tpl.TsiError). E.g. clearing of a severe error once may be ok,
but if it occured three times within an hour, this seems fishy.getResetMax(stella.net.tpl.TsiError), the error may not be
cleared.| Modifier and Type | Method and Description |
|---|---|
int |
getAccumulateCount(TsiError tsi)
Returns the number of error occurences for that the accumulation span has
to be checked.
|
long |
getAccumulateSpan(TsiError tsi)
Returns the maximum time span allowed for the occurence of
getAccumulateCount(stella.net.tpl.TsiError) errors. |
long |
getResetLag(TsiError tsi)
Returns the minimum time that must pass between clearing of errors.
|
int |
getResetMax(TsiError tsi)
Returns the maximum number of error of the specified type allowed
pending.
|
boolean |
ignore(TsiError tsi)
Returns true, if this error can savly be ignored under the current
policy.
|
long getResetLag(TsiError tsi)
long getAccumulateSpan(TsiError tsi)
getAccumulateCount(stella.net.tpl.TsiError) errors. This means, once the maximum number
of errors is reached, clearing of this error is only allowed, if the
occurence date of the max num last error is at least this time span in
the past.int getAccumulateCount(TsiError tsi)
getResetMax(stella.net.tpl.TsiError).int getResetMax(TsiError tsi)
boolean ignore(TsiError tsi)