View Javadoc

1   package fr.in2p3.jsaga.adaptor.job;
2   
3   import fr.in2p3.jsaga.adaptor.job.monitor.JobStatus;
4   
5   /* ***************************************************
6   * *** Centre de Calcul de l'IN2P3 - Lyon (France) ***
7   * ***             http://cc.in2p3.fr/             ***
8   * ***************************************************
9   * File:   EmulatorJobStatus
10  * Author: Sylvain Reynaud (sreynaud@in2p3.fr)
11  * Date:   28 mars 2008
12  * ***************************************************
13  * Description:                                      */
14  /**
15   *
16   */
17  public class EmulatorJobStatus extends JobStatus {
18      public EmulatorJobStatus(String jobId, SubState stateCode) {
19          super(jobId, stateCode, stateCode.toString());
20      }
21  
22      public EmulatorJobStatus(String jobId, SubState stateCode, Exception exception) {
23          super(jobId, stateCode, stateCode.toString(), exception.getMessage());
24      }
25  
26      public String getModel() {
27          return "Emulator";
28      }
29  
30      public SubState getSubState() {
31          return (SubState) m_nativeStateCode;
32      }
33  }