public static final class TsiError.DefaultErrorPolicy extends Object implements TsiErrorPolicy
| PANIC | ERROR | WARNING | INFO | |
|---|---|---|---|---|
| Reset lag (sec.) | 7*86400 | 86400 | 3600 | 0 |
| Accumulation span | 7*86400 | 7*86400 | 86400 | 0 |
| Accumulation count | 1 | 3 | 10 | 1000 |
| Reset maximum/td> | 3 | 10 | 100 | --- |
| Constructor and Description |
|---|
DefaultErrorPolicy()
Constructor chaining.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAccumulateCount(TsiError panic)
Per default, the level of the error determines the reset cumulation:
once for panic, 3 for error, 10 for warning and unlimited for info.
|
long |
getAccumulateSpan(TsiError panic)
Per default, the level of the error determines the cumulation span
time, this is the minimum allowed time span for the accumulation
error count.
|
long |
getResetLag(TsiError panic)
Per default, the level of the error determines the reset interval:
once per week for panic, once per day for error, once per five min
for warning and none for info.
|
int |
getResetMax(TsiError panic)
Per default, the level of the error determines the reset maximum: 3
for panic, 10 for error, 100 for warning and unlimited for info.
|
boolean |
ignore(TsiError panic)
Errors that have only an INFO level are per default ignorable.
|
public boolean ignore(TsiError panic)
ignore in interface TsiErrorPolicypublic long getResetLag(TsiError panic)
getResetLag in interface TsiErrorPolicypublic long getAccumulateSpan(TsiError panic)
getAccumulateSpan in interface TsiErrorPolicypublic int getAccumulateCount(TsiError panic)
getAccumulateCount in interface TsiErrorPolicypublic int getResetMax(TsiError panic)
getResetMax in interface TsiErrorPolicy