All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.internal.batchee.job-instances.jsp Maven / Gradle / Ivy

The newest version!
<%--
    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 session="false" %>
<%@ page import="jakarta.batch.runtime.JobExecution" %>
<%@ page import="jakarta.batch.runtime.JobInstance" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Map" %>
<%@ page import="org.apache.batchee.servlet.StatusHelper" %>
<%@ page import="java.net.URLEncoder" %>
<%@ page import="jakarta.batch.runtime.BatchStatus" %>

<% final String name = (String) request.getAttribute("name"); %>

<%= name %>

<% for ( final Map.Entry> instance : ((Map>) request.getAttribute("executions")).entrySet() ) { %>
Executions of instance <%= instance.getKey().getInstanceId() %>
<% for ( final JobExecution execution : instance.getValue() ) { %> <% } %>
# Batch status Exit status Create time Last updated time End time Actions
/step-executions/<%= execution.getExecutionId() %>"><%= execution.getExecutionId() %> <%= execution.getBatchStatus().name() %> <%= execution.getExitStatus() != null ? execution.getExitStatus() : "" %> <%= execution.getCreateTime() %> <%= execution.getLastUpdatedTime() %> <%= execution.getEndTime() != null ? execution.getEndTime(): "" %> <% if (BatchStatus.STARTED.equals(execution.getBatchStatus())) { %> Stop <% } else { %> - <% } %>
<% final String url = request.getAttribute("mapping") + "/executions/" + URLEncoder.encode(name, "UTF-8") + "?start="; final Integer previousStart = (Integer) request.getAttribute("previousStart"); if (previousStart >= 0) { // here we need to test 0 for 2nd page case %> Previous executions <% } %> <% final Integer nextStart = (Integer) request.getAttribute("nextStart"); if (nextStart > 0) { %> Next executions <% } %> <% final Integer lastStart = (Integer) request.getAttribute("lastStart"); if (lastStart > 0) { %> Jump to last executions <% } %> <% } %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy