summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/gui/tabs/execution/DefaultExecutor.java
blob: 848d1d395bf8d858f0be278298a9620224cf831f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.c2kernel.gui.tabs.execution;

import javax.swing.JLabel;

import com.c2kernel.entity.agent.Job;
import com.c2kernel.gui.MainFrame;
import com.c2kernel.utils.Language;

/**************************************************************************
 *
 * $Revision: 1.2 $
 * $Date: 2003/11/04 14:31:30 $
 *
 * Copyright (C) 2003 CERN - European Organization for Nuclear Research
 * All rights reserved.
 **************************************************************************/

public class DefaultExecutor implements Executor {

    public DefaultExecutor() {
        super();
    }

    @Override
	public void execute(Job job, JLabel status) throws Exception {
        status.setText(Language.translate("Submitting..."));
        MainFrame.progress.startBouncing("Requesting, please wait.");
        MainFrame.userAgent.execute(job);
        MainFrame.progress.stopBouncing("Execution complete.");
        status.setText("Waiting for joblist update.");
    }

    @Override
	public String toString() {
        return "Normal";
    }
}