1 | <%@ page |
---|
2 | pageEncoding="UTF-8" |
---|
3 | session="false" |
---|
4 | import="net.sf.basedb.core.Application" |
---|
5 | import="net.sf.basedb.core.User" |
---|
6 | import="net.sf.basedb.core.DbControl" |
---|
7 | import="net.sf.basedb.core.SessionControl" |
---|
8 | import="net.sf.basedb.clients.web.Base" |
---|
9 | import="net.sf.basedb.clients.web.util.HTML" |
---|
10 | import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
---|
11 | import="net.sf.basedb.util.Values" |
---|
12 | %> |
---|
13 | <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
---|
14 | <%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
---|
15 | <%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %> |
---|
16 | <% |
---|
17 | final SessionControl sc = Base.getExistingSessionControl(request, true); |
---|
18 | final String ID = sc.getId(); |
---|
19 | final float scale = Base.getScale(sc); |
---|
20 | final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
---|
21 | DbControl dc = null; |
---|
22 | try |
---|
23 | { |
---|
24 | dc = sc.newDbControl(); |
---|
25 | final User user = User.getById(dc, sc.getLoggedInUserId()); |
---|
26 | %> |
---|
27 | <base:page type="default" > |
---|
28 | <base:head |
---|
29 | scripts="~../../reggie.js,~list-clusters.js" |
---|
30 | styles="path.css,table.css,toolbar.css,~../../css/reggie.css"> |
---|
31 | <style> |
---|
32 | .ogs-status |
---|
33 | { |
---|
34 | width: 24px; |
---|
35 | text-align: center; |
---|
36 | } |
---|
37 | </style> |
---|
38 | </base:head> |
---|
39 | <base:body> |
---|
40 | |
---|
41 | <p:path><p:pathelement |
---|
42 | title="Reggie" href="<%="../../index.jsp?ID="+ID%>" |
---|
43 | /><p:pathelement title="Open Grid Scheduler" |
---|
44 | /></p:path> |
---|
45 | |
---|
46 | <div class="content"> |
---|
47 | |
---|
48 | <tbl:table |
---|
49 | id="ogs" |
---|
50 | style="margin: 1em; width: auto;" |
---|
51 | > |
---|
52 | <tbl:columndef |
---|
53 | id="status" |
---|
54 | title="" |
---|
55 | /> |
---|
56 | <tbl:columndef |
---|
57 | id="name" |
---|
58 | title="Name" |
---|
59 | /> |
---|
60 | <tbl:columndef |
---|
61 | id="ip" |
---|
62 | title="IP address" |
---|
63 | /> |
---|
64 | <tbl:columndef |
---|
65 | id="info" |
---|
66 | title="Info" |
---|
67 | /> |
---|
68 | |
---|
69 | <tbl:toolbar |
---|
70 | subclass="topborder leftborder rightborder" |
---|
71 | > |
---|
72 | <tbl:button |
---|
73 | id="btnReload" |
---|
74 | image="refresh.png" |
---|
75 | title="Reload configuration" |
---|
76 | tooltip="Reload Open Grid Scheduler configuration file" |
---|
77 | /> |
---|
78 | </tbl:toolbar> |
---|
79 | <tbl:data> |
---|
80 | <tbl:headers> |
---|
81 | <tbl:headerrow id="row-template"> |
---|
82 | <tbl:columnheaders /> |
---|
83 | </tbl:headerrow> |
---|
84 | </tbl:headers> |
---|
85 | <tbl:rows id="all-rows"> |
---|
86 | </tbl:rows> |
---|
87 | </tbl:data> |
---|
88 | </tbl:table> |
---|
89 | </div> |
---|
90 | |
---|
91 | </base:body> |
---|
92 | </base:page> |
---|
93 | <% |
---|
94 | } |
---|
95 | finally |
---|
96 | { |
---|
97 | if (dc != null) dc.close(); |
---|
98 | } |
---|
99 | %> |
---|