Mercurial > hg > digilib-old
diff servlet3/src/main/java/digilib/servlet/DigilibServletConfiguration.java @ 937:7bcc6765c209
improved runtime statistics
author | robcast |
---|---|
date | Wed, 21 Dec 2011 19:18:16 +0100 |
parents | 333e60e5cae9 |
children | b2d97b842612 |
line wrap: on
line diff
--- a/servlet3/src/main/java/digilib/servlet/DigilibServletConfiguration.java Wed Dec 21 17:57:30 2011 +0100 +++ b/servlet3/src/main/java/digilib/servlet/DigilibServletConfiguration.java Wed Dec 21 19:18:16 2011 +0100 @@ -51,6 +51,12 @@ */ public class DigilibServletConfiguration extends DigilibConfiguration { + /** time the webapp (i.e. this class) was loaded */ + public final Long webappStartTime = System.currentTimeMillis(); + + /** counter for HttpRequests (mostly for debugging) */ + public AtomicInteger webappRequestCnt = new AtomicInteger(0); + /** counter for open HttpRequests (mostly for debugging) */ public AtomicInteger openRequestCnt = new AtomicInteger(0);