|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.support.logging.patternsupport.HandlingTimeProcessor
public class HandlingTimeProcessor
This processor adds %D
and %T
parameters
handling. %D
is amount of milliseconds connection handling lasted
while &T
shows the same time in seconds
Field Summary | |
---|---|
protected int |
millisIndex
Cached index of milliseconds parameter |
protected int |
secsIndex
Cached index of seconds parameter |
Constructor Summary | |
---|---|
HandlingTimeProcessor()
Constructor |
Method Summary | |
---|---|
int |
init(int index,
StringBuffer message)
Checks if parameters are present and if so replaces it and caches their indexes |
void |
process(Connection connection,
Object[] array)
Adds parameter values to cached index positions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int millisIndex
protected int secsIndex
Constructor Detail |
---|
public HandlingTimeProcessor()
Method Detail |
---|
public int init(int index, StringBuffer message)
init
in interface PatternProcessor
index
- next index to be usedmessage
- message to be alteredpublic void process(Connection connection, Object[] array)
process
in interface PatternProcessor
connection
- connectionarray
- array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |