blob: 61cb3ef15e31d50cf4680e68a4a91028ea8370e9 [file] [log] [blame]
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<%@ page language="java" %>
<html>
<head>
<link rel="shortcut icon" href="uima.ico" />
<title>ducc-mon</title>
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
<%@ include file="$imports.jsp" %>
<%
if (table_style.equals("scroll")) {
%>
<script type="text/javascript" charset="utf-8">
var oTable;
$(document).ready(function() {
oTable = $('#jobs-table').dataTable( {
dom: 'C<"clear">lfrtip',
"bProcessing": true,
"bPaginate": false,
"bFilter": true,
"sScrollX": "100%",
"sScrollY": "600px",
"bInfo": false,
"sAjaxSource": "ducc-servlet/json-format-aaData-jobs",
"aaSorting": [],
"aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ],
"fnRowCallback" : function(nRow,aData,iDisplayIndex) {
$('td:eq(0)', nRow).css( "text-align", "right" );
$('td:eq(1)', nRow).css( "text-align", "right" );
$('td:eq(3)', nRow).css( "text-align", "right" );
$('td:eq(8)', nRow).css( "text-align", "right" );
$('td:eq(9)', nRow).css( "text-align", "right" );
$('td:eq(10)', nRow).css( "text-align", "right" );
$('td:eq(11)', nRow).css( "text-align", "right" );
$('td:eq(12)', nRow).css( "text-align", "right" );
$('td:eq(13)', nRow).css( "text-align", "right" );
$('td:eq(14)', nRow).css( "text-align", "right" );
$('td:eq(15)', nRow).css( "text-align", "right" );
$('td:eq(16)', nRow).css( "text-align", "right" );
$('td:eq(17)', nRow).css( "text-align", "right" );
$('td:eq(18)', nRow).css( "text-align", "right" );
$('td:eq(19)', nRow).css( "text-align", "right" );
$('td:eq(20)', nRow).css( "text-align", "right" );
return nRow;
},
} );
} );
</script>
<%
}
%>
</head>
<body onload="ducc_init('jobs');" onResize="ducc_resize();">
<!-- ####################### common ######################## -->
<div class="flex-page">
<!-- *********************** table ************************* -->
<table class="flex-heading">
<!-- *********************** row *************************** -->
<tr class="heading">
<!-- *********************** column ************************ -->
<td valign="middle" align="center">
<%@ include file="$banner/c0-menu.jsp" %>
</td>
<!-- *********************** column ************************ -->
<%@ include file="$banner/$runmode.jsp" %>
<!-- *********************** column ************************ -->
<td valign="middle" align="center">
<%@ include file="$banner/c1-refresh-jobs.jsp" %>
</td>
<!-- *********************** column ************************ -->
<td valign="middle" align="center">
<%@ include file="$banner/c2-status-jobs.jsp" %>
</td>
<!-- *********************** column ************************ -->
<td valign="middle" align="center">
<%@ include file="$banner/c3-image-jobs.jsp" %>
</td>
<!-- *********************** column ************************ -->
<td valign="middle" align="center">
<%@ include file="$banner/c4-ducc-mon.jsp" %>
</td>
</table>
<!-- *********************** /table ************************ -->
<!-- *********************** table ************************* -->
<%@ include file="$banner/t2-alerts.jsp" %>
<%@ include file="$banner/t2-messages.jsp" %>
<!-- *********************** /table ************************ -->
<!-- ####################### /common ####################### -->
<!-- @@@@@@@@@@@@@@@@@@@@@@@ unique @@@@@@@@@@@@@@@@@@@@@@@@ -->
<%
if (table_style.equals("scroll")) {
%>
<table width="100%">
<caption title="Hint: use Preferences -> Table Style to alter format"><b>Jobs List</b><br><i><small>click column heading to sort</small></i></caption>
</table>
<table id="jobs-table" width="100%">
<thead>
<tr class="ducc-header">
<th class="ducc-col-terminate"></th>
<th title="The system assigned id for this job" class="sorttable_numeric">Id</th>
<th title="The time this job was submitted">Start</th>
<th title="The time this job lasted (or the projected time until finish if presently running), units ddd:hh:mm:ss">Duration</th>
<th class="ducc-no-filter" id="user_column_heading" title="The user who submitted this job">User</th>
<th title="The user specified class of this job">Class</th>
<th title="The current state of this job">State</th>
<th title="The reason for the final state of this job, normally EndOfJob; or extraordinary runtime status">Reason<br><small>or extraordinary status</small></th>
<th title="The current state of service dependencies">Services</th>
<th title="The number of job processes currently running">Proc-<br>esses</th>
<th title="The number of job processes that failed during initialization">Init<br>Fails</th>
<th title="The number of job processes that failed during runtime (post-initialization)">Run<br>Fails</th>
<th title="The count for all job processes of major faults which required loading a memory page from disk">Pgin</th>
<th title="The GB swapped out to disk for all job processes, current if state=running or maximum if state=completed">Swap</th>
<th title="Each job process size, in GB">Memory</th>
<th title="The total number of work items for this job">Total</th>
<th title="The number of work items that completed successfully">Done</th>
<th title="The number of work items that failed to complete successfully">Error</th>
<th title="The number of work items currently dispatched (queued+operating)">Dis-<br>patch</th>
<th title="The number of work items that were retried, excluding preemptions">Retry</th>
<th title="Tne number of work items that were preempted">Pre-<br>empt</th>
<th title="The user specified description of this job">Description</th>
</tr>
</thead>
<tbody id="jobs_list_area">
</tbody>
</table>
<%
}
%>
<%
if (table_style.equals("classic")) {
%>
<table width="100%">
<caption title="Hint: use Preferences -> Table Style to alter format"><b>Jobs List</b><br><i><small>click column heading to sort</small></i></caption>
<tr>
<td>
<table class="sortable">
<thead>
<tr class="ducc-head">
<th class="ducc-col-terminate"></th>
<th class="sorttable_numeric" title="The system assigned id for this job">Id</th>
<th class="none" title="The time this job was submitted">Start</th>
<th class="none" title="The time this job lasted (or the projected time until finish if presently running), units ddd:hh:mm:ss">Duration</th>
<th class="ducc-no-filter" title="The user who submitted this job" id="user_column_heading">User</th>
<th class="none" title="The user specified class of this job">Class</th>
<th class="none" title="The current state of this job">State</th>
<th class="none" title="The reason for the final state of this job, normally EndOfJob; or extraordinary runtime status">Reason<br><small>or extraordinary status</small></th>
<th class="none" title="The current state of service dependencies">Services</th>
<th class="sorttable_numeric" title="The number of job processes currently running">Proc-<br>esses</th>
<th class="sorttable_numeric" title="The number of job processes that failed during initialization">Init<br>Fails</th>
<th class="sorttable_numeric" title="The number of job processes that failed during runtime (post-initialization)">Run<br>Fails</th>
<th class="sorttable_numeric" title="The count for all job processes of major faults which required loading a memory page from disk">Pgin</th>
<th class="sorttable_numeric" title="The GB swapped out to disk for all job processes, current if state=running or maximum if state=completed" class="sorttable_numeric">Swap</th>
<th class="sorttable_numeric" title="Each job process size, in GB">Memory</th>
<th class="sorttable_numeric" title="The total number of work items for this job">Total</th>
<th class="sorttable_numeric" title="The number of work items that completed successfully">Done</th>
<th class="sorttable_numeric" title="The number of work items that failed to complete successfully">Error</th>
<th class="sorttable_numeric" title="The number of work items currently dispatched (queued+operating)">Dis-<br>patch</th>
<th class="sorttable_numeric" title="The number of work items that were retried, excluding preemptions">Retry</th>
<th class="sorttable_numeric" title="Tne number of work items that were preempted">Pre-<br>empt</th>
<th class="none" title="The user specified description of this job">Description</th>
</tr>
</thead>
<tbody id="jobs_list_area">
</tbody>
</table>
</table>
<%
}
%>
<!-- @@@@@@@@@@@@@@@@@@@@@@@ /unique @@@@@@@@@@@@@@@@@@@@@@@@ -->
<!-- ####################### common ######################### -->
</div>
<script src="opensources/navigation/menu.js"></script>
</body>
</html>