Mercurial > hg > digilib-old
comparison client/digitallibrary/server/dlConfig.jsp @ 544:5ff500d6812a digilibPDF
more steps towards more standard java.util.concurrent design
author | robcast |
---|---|
date | Thu, 14 Oct 2010 20:47:31 +0200 |
parents | 6a74da78f304 |
children | bc9196347188 |
comparison
equal
deleted
inserted
replaced
543:919e008ab1fb | 544:5ff500d6812a |
---|---|
1 <%@page import="digilib.servlet.DigilibJobCenter"%> | |
1 <%@ page language="java" %> | 2 <%@ page language="java" %> |
2 | 3 |
3 <%! | 4 <%! |
4 // authentication stuff - robert | 5 // authentication stuff - robert |
5 // ----------------------------- | 6 // ----------------------------- |
24 digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request); | 25 digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request); |
25 // add number of pages | 26 // add number of pages |
26 dlRequest.setValue("pt", docBean.getNumPages(dlRequest)); | 27 dlRequest.setValue("pt", docBean.getNumPages(dlRequest)); |
27 // dir cache | 28 // dir cache |
28 digilib.io.DocuDirCache dirCache = (digilib.io.DocuDirCache) dlConfig.getValue("servlet.dir.cache"); | 29 digilib.io.DocuDirCache dirCache = (digilib.io.DocuDirCache) dlConfig.getValue("servlet.dir.cache"); |
30 // image JobCenter | |
31 DigilibJobCenter imageProcessor = (DigilibJobCenter)dlConfig.getValue("servlet.worker.imageexecutor"); | |
32 | |
29 %> | 33 %> |
30 | 34 |
31 <html> | 35 <html> |
32 <head> | 36 <head> |
33 <title>Digilib configuration page</title> | 37 <title>Digilib configuration page</title> |
68 | 72 |
69 <h2>Threads</h2> | 73 <h2>Threads</h2> |
70 | 74 |
71 <table> | 75 <table> |
72 <tr> | 76 <tr> |
73 <td>currently waiting</td><td><b><%= digilib.servlet.DigilibWorker.getNumWaiting() %></b></td> | 77 <td>currently waiting</td><td><b><%= imageProcessor.getWaitingJobs() %></b></td> |
74 <td></td> | 78 <td></td> |
75 </tr> | 79 </tr> |
76 <tr> | 80 <tr> |
77 <td>currently running</td><td><b><%= digilib.servlet.DigilibWorker.getNumRunning() %></b></td> | 81 <td>currently running</td><td><b><%= imageProcessor.getRunningJobs() %></b></td> |
78 <td></td> | 82 <td></td> |
79 </tr> | 83 </tr> |
80 </table> | 84 </table> |
81 | 85 |
82 <h2>Directory cache</h2> | 86 <h2>Directory cache</h2> |