Java 类ims.core.vo.ConfiguredJobExecutionSummaryVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void loadData() 
{
    form.btnRefresh().setVisible(false);
    form.grdHistory().getRows().clear();

    ISchedulerServlet servletInstance = getTaskSchedulerServlet();
    ConfiguredJobVo currentJobConfiguration = form.getGlobalContext().Admin.getCurrentJobConfiguration();

    ISchedulerJob instance = servletInstance.getJob(currentJobConfiguration.getID_ConfiguredJob());
    if (instance != null)
    {   
        form.btnRefresh().setVisible(true);

        ConfiguredJobExecutionSummaryVo executionSummary = new ConfiguredJobExecutionSummaryVo();
        executionSummary.setMessage("Scheduled job is running.");
        executionSummary.setStartDateTime(instance.getJobStartDateTime());
        if (instance.getExecutionTrace() != null)
        {
            List<ITraceRecord> traces = instance.getExecutionTrace().getTrace();
            ConfiguredJobExecutionTraceVoCollection coll = new ConfiguredJobExecutionTraceVoCollection();
            for (int i = 0; i < traces.size(); i++) 
            {
                ConfiguredJobExecutionTraceVo vo = new ConfiguredJobExecutionTraceVo();
                vo.setMessage(traces.get(i).getMessage());
                vo.setDateTime(traces.get(i).getDateTime());
                coll.add(vo);
            }               

            executionSummary.setTraces(coll);
        }

        grdHistoryRow row = form.grdHistory().getRows().newRow();
        row.setValue(executionSummary);

        row.setColImage(form.getImages().Core.Time);
        row.setColStartDateTime(executionSummary.getStartDateTime() == null ? "Unknown" : executionSummary.getStartDateTime().toString());
        row.setColEndDateTime(null);
        row.setColStatus("In Progress");
        row.setColMessage(executionSummary.getMessage() == null ? "No details." : executionSummary.getMessage());           
    }       

    ConfiguredJobExecutionSummaryVoCollection list = domain.getHistory(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    for(int x = 0; x < list.size(); x++)
    {
        addItem(list.get(x));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadData() 
{
    form.btnRefresh().setVisible(false);
    form.grdHistory().getRows().clear();

    ISchedulerServlet servletInstance = getTaskSchedulerServlet();
    ConfiguredJobVo currentJobConfiguration = form.getGlobalContext().Admin.getCurrentJobConfiguration();

    ISchedulerJob instance = servletInstance.getJob(currentJobConfiguration.getID_ConfiguredJob());
    if (instance != null)
    {   
        form.btnRefresh().setVisible(true);

        ConfiguredJobExecutionSummaryVo executionSummary = new ConfiguredJobExecutionSummaryVo();
        executionSummary.setMessage("Scheduled job is running.");
        executionSummary.setStartDateTime(instance.getJobStartDateTime());
        if (instance.getExecutionTrace() != null)
        {
            List<ITraceRecord> traces = instance.getExecutionTrace().getTrace();
            ConfiguredJobExecutionTraceVoCollection coll = new ConfiguredJobExecutionTraceVoCollection();
            for (int i = 0; i < traces.size(); i++) 
            {
                ConfiguredJobExecutionTraceVo vo = new ConfiguredJobExecutionTraceVo();
                vo.setMessage(traces.get(i).getMessage());
                vo.setDateTime(traces.get(i).getDateTime());
                coll.add(vo);
            }               

            executionSummary.setTraces(coll);
        }

        grdHistoryRow row = form.grdHistory().getRows().newRow();
        row.setValue(executionSummary);

        row.setColImage(form.getImages().Core.Time);
        row.setColStartDateTime(executionSummary.getStartDateTime() == null ? "Unknown" : executionSummary.getStartDateTime().toString());
        row.setColEndDateTime(null);
        row.setColStatus("In Progress");
        row.setColMessage(executionSummary.getMessage() == null ? "No details." : executionSummary.getMessage());           
    }       

    ConfiguredJobExecutionSummaryVoCollection list = domain.getHistory(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    for(int x = 0; x < list.size(); x++)
    {
        addItem(list.get(x));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadData() 
{
    form.btnRefresh().setVisible(false);
    form.grdHistory().getRows().clear();

    ISchedulerServlet servletInstance = getTaskSchedulerServlet();
    ConfiguredJobVo currentJobConfiguration = form.getGlobalContext().Admin.getCurrentJobConfiguration();

    ISchedulerJob instance = servletInstance.getJob(currentJobConfiguration.getID_ConfiguredJob());
    if (instance != null)
    {   
        form.btnRefresh().setVisible(true);

        ConfiguredJobExecutionSummaryVo executionSummary = new ConfiguredJobExecutionSummaryVo();
        executionSummary.setMessage("Scheduled job is running.");
        executionSummary.setStartDateTime(instance.getJobStartDateTime());
        if (instance.getExecutionTrace() != null)
        {
            List<ITraceRecord> traces = instance.getExecutionTrace().getTrace();
            ConfiguredJobExecutionTraceVoCollection coll = new ConfiguredJobExecutionTraceVoCollection();
            for (int i = 0; i < traces.size(); i++) 
            {
                ConfiguredJobExecutionTraceVo vo = new ConfiguredJobExecutionTraceVo();
                vo.setMessage(traces.get(i).getMessage());
                vo.setDateTime(traces.get(i).getDateTime());
                coll.add(vo);
            }               

            executionSummary.setTraces(coll);
        }

        grdHistoryRow row = form.grdHistory().getRows().newRow();
        row.setValue(executionSummary);

        row.setColImage(form.getImages().Core.Time);
        row.setColStartDateTime(executionSummary.getStartDateTime() == null ? "Unknown" : executionSummary.getStartDateTime().toString());
        row.setColEndDateTime(null);
        row.setColStatus("In Progress");
        row.setColMessage(executionSummary.getMessage() == null ? "No details." : executionSummary.getMessage());           
    }       

    ConfiguredJobExecutionSummaryVoCollection list = domain.getHistory(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    for(int x = 0; x < list.size(); x++)
    {
        addItem(list.get(x));
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void loadData() 
{
    form.btnRefresh().setVisible(false);
    form.grdHistory().getRows().clear();

    ISchedulerServlet servletInstance = getTaskSchedulerServlet();
    ConfiguredJobVo currentJobConfiguration = form.getGlobalContext().Admin.getCurrentJobConfiguration();

    ISchedulerJob instance = servletInstance.getJob(currentJobConfiguration.getID_ConfiguredJob());
    if (instance != null)
    {   
        form.btnRefresh().setVisible(true);

        ConfiguredJobExecutionSummaryVo executionSummary = new ConfiguredJobExecutionSummaryVo();
        executionSummary.setMessage("Scheduled job is running.");
        executionSummary.setStartDateTime(instance.getJobStartDateTime());
        if (instance.getExecutionTrace() != null)
        {
            List<ITraceRecord> traces = instance.getExecutionTrace().getTrace();
            ConfiguredJobExecutionTraceVoCollection coll = new ConfiguredJobExecutionTraceVoCollection();
            for (int i = 0; i < traces.size(); i++) 
            {
                ConfiguredJobExecutionTraceVo vo = new ConfiguredJobExecutionTraceVo();
                vo.setMessage(traces.get(i).getMessage());
                vo.setDateTime(traces.get(i).getDateTime());
                coll.add(vo);
            }               

            executionSummary.setTraces(coll);
        }

        grdHistoryRow row = form.grdHistory().getRows().newRow();
        row.setValue(executionSummary);

        row.setColImage(form.getImages().Core.Time);
        row.setColStartDateTime(executionSummary.getStartDateTime() == null ? "Unknown" : executionSummary.getStartDateTime().toString());
        row.setColEndDateTime(null);
        row.setColStatus("In Progress");
        row.setColMessage(executionSummary.getMessage() == null ? "No details." : executionSummary.getMessage());           
    }       

    ConfiguredJobExecutionSummaryVoCollection list = domain.getHistory(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    for(int x = 0; x < list.size(); x++)
    {
        addItem(list.get(x));
    }
}