4314 |
20 Jan 17 |
nicklas |
1 |
<%@ page |
4314 |
20 Jan 17 |
nicklas |
2 |
pageEncoding="UTF-8" |
4314 |
20 Jan 17 |
nicklas |
3 |
session="false" |
4314 |
20 Jan 17 |
nicklas |
4 |
import="net.sf.basedb.core.Application" |
4314 |
20 Jan 17 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
4314 |
20 Jan 17 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
4314 |
20 Jan 17 |
nicklas |
7 |
import="net.sf.basedb.core.Permission" |
4314 |
20 Jan 17 |
nicklas |
8 |
import="net.sf.basedb.core.PermissionDeniedException" |
4314 |
20 Jan 17 |
nicklas |
9 |
import="net.sf.basedb.clients.web.Base" |
4314 |
20 Jan 17 |
nicklas |
10 |
import="net.sf.basedb.clients.web.util.HTML" |
4314 |
20 Jan 17 |
nicklas |
11 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
4314 |
20 Jan 17 |
nicklas |
12 |
import="net.sf.basedb.util.Values" |
4314 |
20 Jan 17 |
nicklas |
13 |
%> |
4314 |
20 Jan 17 |
nicklas |
14 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
4314 |
20 Jan 17 |
nicklas |
15 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
4314 |
20 Jan 17 |
nicklas |
16 |
<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %> |
4314 |
20 Jan 17 |
nicklas |
17 |
<% |
4314 |
20 Jan 17 |
nicklas |
18 |
final SessionControl sc = Base.getExistingSessionControl(request, true); |
4314 |
20 Jan 17 |
nicklas |
19 |
final String ID = sc.getId(); |
4314 |
20 Jan 17 |
nicklas |
20 |
DbControl dc = null; |
4314 |
20 Jan 17 |
nicklas |
21 |
try |
4314 |
20 Jan 17 |
nicklas |
22 |
{ |
4314 |
20 Jan 17 |
nicklas |
23 |
dc = sc.newDbControl(); |
4314 |
20 Jan 17 |
nicklas |
24 |
if (!ExtensionsControl.get(dc).hasPermission(Permission.WRITE)) |
4314 |
20 Jan 17 |
nicklas |
25 |
{ |
4314 |
20 Jan 17 |
nicklas |
26 |
throw new PermissionDeniedException("You are not allowed to manage Open Grid Clusters."); |
4314 |
20 Jan 17 |
nicklas |
27 |
} |
4314 |
20 Jan 17 |
nicklas |
28 |
%> |
4314 |
20 Jan 17 |
nicklas |
29 |
<base:page type="default" > |
4314 |
20 Jan 17 |
nicklas |
30 |
<base:head |
4314 |
20 Jan 17 |
nicklas |
31 |
scripts="~list-clusters.js" |
4314 |
20 Jan 17 |
nicklas |
32 |
styles="path.css,table.css,toolbar.css"> |
4314 |
20 Jan 17 |
nicklas |
33 |
<style> |
4314 |
20 Jan 17 |
nicklas |
34 |
.host-status |
4314 |
20 Jan 17 |
nicklas |
35 |
{ |
4314 |
20 Jan 17 |
nicklas |
36 |
width: 24px; |
4314 |
20 Jan 17 |
nicklas |
37 |
text-align: center; |
4314 |
20 Jan 17 |
nicklas |
38 |
} |
4315 |
23 Jan 17 |
nicklas |
39 |
#hosts div.data > table |
4315 |
23 Jan 17 |
nicklas |
40 |
{ |
4315 |
23 Jan 17 |
nicklas |
41 |
border-left: 0; |
4315 |
23 Jan 17 |
nicklas |
42 |
border-right: 0; |
4315 |
23 Jan 17 |
nicklas |
43 |
} |
4315 |
23 Jan 17 |
nicklas |
44 |
#hosts div.data > table td |
4315 |
23 Jan 17 |
nicklas |
45 |
{ |
4315 |
23 Jan 17 |
nicklas |
46 |
padding: 3px; |
4315 |
23 Jan 17 |
nicklas |
47 |
} |
4315 |
23 Jan 17 |
nicklas |
48 |
|
4314 |
20 Jan 17 |
nicklas |
49 |
</style> |
4314 |
20 Jan 17 |
nicklas |
50 |
</base:head> |
4314 |
20 Jan 17 |
nicklas |
51 |
<base:body> |
4314 |
20 Jan 17 |
nicklas |
52 |
|
5986 |
10 Jul 20 |
nicklas |
53 |
<p:path><p:pathelement title="Job scheduler clusters" /></p:path> |
4314 |
20 Jan 17 |
nicklas |
54 |
|
4314 |
20 Jan 17 |
nicklas |
55 |
<div class="content"> |
4315 |
23 Jan 17 |
nicklas |
56 |
<tbl:table id="hosts"> |
4314 |
20 Jan 17 |
nicklas |
57 |
<tbl:columndef |
4314 |
20 Jan 17 |
nicklas |
58 |
id="status" |
4314 |
20 Jan 17 |
nicklas |
59 |
title="" |
4314 |
20 Jan 17 |
nicklas |
60 |
/> |
4314 |
20 Jan 17 |
nicklas |
61 |
<tbl:columndef |
4314 |
20 Jan 17 |
nicklas |
62 |
id="name" |
4314 |
20 Jan 17 |
nicklas |
63 |
title="Name" |
4314 |
20 Jan 17 |
nicklas |
64 |
/> |
4314 |
20 Jan 17 |
nicklas |
65 |
<tbl:columndef |
4314 |
20 Jan 17 |
nicklas |
66 |
id="server" |
4318 |
24 Jan 17 |
nicklas |
67 |
title="ID (User@Server)" |
4314 |
20 Jan 17 |
nicklas |
68 |
/> |
5986 |
10 Jul 20 |
nicklas |
69 |
<tbl:columndef |
5986 |
10 Jul 20 |
nicklas |
70 |
id="type" |
5986 |
10 Jul 20 |
nicklas |
71 |
title="Type" |
4314 |
20 Jan 17 |
nicklas |
72 |
/> |
4314 |
20 Jan 17 |
nicklas |
73 |
<tbl:columndef |
4314 |
20 Jan 17 |
nicklas |
74 |
id="ogs" |
5986 |
10 Jul 20 |
nicklas |
75 |
title="Version" |
4314 |
20 Jan 17 |
nicklas |
76 |
/> |
4314 |
20 Jan 17 |
nicklas |
77 |
<tbl:columndef |
4314 |
20 Jan 17 |
nicklas |
78 |
id="info" |
4318 |
24 Jan 17 |
nicklas |
79 |
title="Operating system" |
4314 |
20 Jan 17 |
nicklas |
80 |
/> |
5986 |
10 Jul 20 |
nicklas |
81 |
<tbl:columndef |
5986 |
10 Jul 20 |
nicklas |
82 |
id="timeDiff" |
5986 |
10 Jul 20 |
nicklas |
83 |
title="Time diff" |
5986 |
10 Jul 20 |
nicklas |
84 |
/> |
4315 |
23 Jan 17 |
nicklas |
85 |
<tbl:columndef |
4315 |
23 Jan 17 |
nicklas |
86 |
id="jobAgent" |
4315 |
23 Jan 17 |
nicklas |
87 |
title="Job agent" |
4315 |
23 Jan 17 |
nicklas |
88 |
/> |
4314 |
20 Jan 17 |
nicklas |
89 |
<tbl:toolbar |
4314 |
20 Jan 17 |
nicklas |
90 |
subclass="topborder bg-filled-50" |
4314 |
20 Jan 17 |
nicklas |
91 |
> |
4314 |
20 Jan 17 |
nicklas |
92 |
<tbl:button |
4314 |
20 Jan 17 |
nicklas |
93 |
id="btnReload" |
4314 |
20 Jan 17 |
nicklas |
94 |
image="refresh.png" |
4314 |
20 Jan 17 |
nicklas |
95 |
title="Reload configuration" |
4314 |
20 Jan 17 |
nicklas |
96 |
tooltip="Reload Open Grid Scheduler configuration file" |
4314 |
20 Jan 17 |
nicklas |
97 |
/> |
4314 |
20 Jan 17 |
nicklas |
98 |
</tbl:toolbar> |
4314 |
20 Jan 17 |
nicklas |
99 |
<tbl:data style="border-right: 0; border-left: 0;"> |
4314 |
20 Jan 17 |
nicklas |
100 |
<tbl:headers> |
4314 |
20 Jan 17 |
nicklas |
101 |
<tbl:headerrow id="row-template"> |
4314 |
20 Jan 17 |
nicklas |
102 |
<tbl:columnheaders /> |
4314 |
20 Jan 17 |
nicklas |
103 |
</tbl:headerrow> |
4314 |
20 Jan 17 |
nicklas |
104 |
</tbl:headers> |
4314 |
20 Jan 17 |
nicklas |
105 |
<tbl:rows id="all-rows"> |
4314 |
20 Jan 17 |
nicklas |
106 |
</tbl:rows> |
4314 |
20 Jan 17 |
nicklas |
107 |
</tbl:data> |
4314 |
20 Jan 17 |
nicklas |
108 |
</tbl:table> |
4314 |
20 Jan 17 |
nicklas |
109 |
</div> |
4314 |
20 Jan 17 |
nicklas |
110 |
</div> |
4314 |
20 Jan 17 |
nicklas |
111 |
|
4314 |
20 Jan 17 |
nicklas |
112 |
</base:body> |
4314 |
20 Jan 17 |
nicklas |
113 |
</base:page> |
4314 |
20 Jan 17 |
nicklas |
114 |
<% |
4314 |
20 Jan 17 |
nicklas |
115 |
} |
4314 |
20 Jan 17 |
nicklas |
116 |
finally |
4314 |
20 Jan 17 |
nicklas |
117 |
{ |
4314 |
20 Jan 17 |
nicklas |
118 |
if (dc != null) dc.close(); |
4314 |
20 Jan 17 |
nicklas |
119 |
} |
4314 |
20 Jan 17 |
nicklas |
120 |
%> |