cache.jsp 2.19 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>

<%@include file="/WEB-INF/jsp/init.jsp"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<html>
<head>
<title><spring:message code="admin.cache.page.title" /></title>
</head>
<body>
	<h1>
		<spring:message code="admin.cache.page.title" />
	</h1>
Matija Obreza's avatar
Matija Obreza committed
14

15
16
17
18
19
20
21
22
	<div class="main-col-header clearfix">
    	<div class="nav-header pull-left">
	        <a class="" href="<c:url value="/admin/" />"><spring:message code="menu.admin.index" /></a>
	        <a class="" href="<c:url value="/admin/logger/" />"><spring:message code="menu.admin.loggers" /></a>
	        <a class="" href="<c:url value="/admin/ds2/" />"><spring:message code="menu.admin.ds2" /></a>
		</div>
	</div>
	
23
	<form method="post" action="<c:url value="/admin/cache/clearCaches" />">
Matija Obreza's avatar
Matija Obreza committed
24
25
26
27
		<input type="submit" class="btn btn-default" value="Clear all caches" />
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
	</form>
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
	
	<c:forEach items="${cacheMaps}" var="cacheMap">
		<h3><c:out value="${cacheMap.serviceName}" /> <c:out value="${cacheMap.name}" /></h3>
		<c:set value="${cacheMap.mapStats}" var="mapStat" />

		<div class="row">
			<div class="col-xs-6 col-sm-4">
				<spring:message code="cache.stat.map.ownedEntryCount" />
			</div>
			<div class="col-xs-6 col-sm-8">
				<c:out value="${mapStat.ownedEntryCount}" />
			</div>
		</div>
		
		<div class="row">
			<div class="col-xs-6 col-sm-4">
				<spring:message code="cache.stat.map.lockedEntryCount" />
			</div>
			<div class="col-xs-6 col-sm-8">
				<c:out value="${mapStat.lockedEntryCount}" />
			</div>
		</div>
		
		<div class="row">
			<div class="col-xs-6 col-sm-4">
				<spring:message code="cache.stat.map.puts" />
			</div>
			<div class="col-xs-6 col-sm-8">
				<c:out value="${mapStat.putOperationCount}" />
			</div>
		</div>
		
		<div class="row">
			<div class="col-xs-6 col-sm-4">
				<spring:message code="cache.stat.map.hits" />
			</div>
			<div class="col-xs-6 col-sm-8">
				<c:out value="${mapStat.hits}" />
			</div>
		</div>
	</c:forEach>
	
	<c:forEach items="${cacheOthers}" var="cacheOther">
Matija Obreza's avatar
Matija Obreza committed
71
		<h3><c:out value="${cacheOther}" /> <c:out value="${cacheOther}" /></h3>
72
73
74
	</c:forEach>
</body>
</html>