com.altair.hwm.comm.loadsubmission.ecompute
Class HWMEComputeJobStatus

java.lang.Object
  extended by com.altair.hwm.comm.loadsubmission.ecompute.HWMEComputeJobStatus
All Implemented Interfaces:
IHWMJobStatus

public class HWMEComputeJobStatus
extends java.lang.Object
implements IHWMJobStatus

Title: HWMEComputeJobStatus

Description: Represents the job status of a given job.

Company: Altair Engineering, Inc.


Field Summary
 
Fields inherited from interface com.altair.hwm.interfaces.loadsubmission.IHWMJobStatus
HWM_JOBCREATED, HWM_JOBFAILED, HWM_JOBFINISHED, HWM_JOBQUEUED, HWM_JOBREJECTEDCPU, HWM_JOBREJECTEDRAM, HWM_JOBREJECTEDUNSPECIFIED, HWM_JOBRUNNING, HWM_JOBUNDEFINED, HWM_JOBUPLOADFINISHED, HWM_JOBUPLOADSTARTED
 
Constructor Summary
HWMEComputeJobStatus()
          Constructor
 
Method Summary
 java.lang.String GetDescription()
          Get the description for the status
 int GetJobID()
          Get the job ID.
 int GetStatusCode()
          Get the status code.
 void SetDescription(java.lang.String strDesc)
          Set the description for the status
 void SetJobID(int nJobID)
          Set the job ID.
 void SetStatusCode(int nStatus)
          Set the status code.
 java.lang.String toString()
          Converts the job status into a string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HWMEComputeJobStatus

public HWMEComputeJobStatus()
Constructor

Method Detail

SetDescription

public void SetDescription(java.lang.String strDesc)
Set the description for the status

Parameters:
strDesc - The description for the status

GetDescription

public java.lang.String GetDescription()
Get the description for the status

Specified by:
GetDescription in interface IHWMJobStatus
Returns:
String The description for the status

SetStatusCode

public void SetStatusCode(int nStatus)
Set the status code.

Parameters:
nStatus - The status code for the job. One of the ECOMPUTE_JOBXXX.

GetStatusCode

public int GetStatusCode()
Get the status code.

Specified by:
GetStatusCode in interface IHWMJobStatus
Returns:
int The status code for the job. One of the ECOMPUTE_JOBXXX.

SetJobID

public void SetJobID(int nJobID)
Set the job ID.

Parameters:
nJobID - The job id

GetJobID

public int GetJobID()
Get the job ID.

Returns:
int The job id

toString

public java.lang.String toString()
Converts the job status into a string

Specified by:
toString in interface IHWMJobStatus
Overrides:
toString in class java.lang.Object
Returns:
String The job status code and description as a string.