|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.comm.loadsubmission.jobservices.HWMLocalJobManager
public class HWMLocalJobManager
Title: HWMLocalJobManager
Description:
Represents a job manager for locally submitted jobs such as optistruct
Manages a Vector of jobs submitted by the user
Creates blank job if required
Retrieves a persisted job object and its status from a binary file
Submits job objects through a dialog interface
Needs an entry shown below in the hdmconfig.xml to be invoked from tcl
Constructor Summary | |
---|---|
HWMLocalJobManager()
Default Constructor Does nothing |
Method Summary | |
---|---|
void |
AddJobListener(IHWMJobListener listener,
IHWMJob hwmJob)
This method adds the specified listener in order to get call back events from the specified job. |
void |
AddJobs(HWMOptistructJob job)
Adds jobs to the job manager IMP : job must have a job ID |
IHWMJob |
CreateJobInstance()
This method creates an instance of IHWMJob without a GUI This mode is primarily used for creating a default job in to which different parameters can be set through APIs available in IHWMJob. |
IHWMJob |
CreateJobInstance(java.lang.String strJobID)
GetJobInstance - returns a job if existent based on ID |
IHWMJob |
CreateJobInstanceWithDialog()
This method creates an instance of IHWMJob with parameters set in a GUI dialog. |
int |
DownloadResults(HWMOptistructJob job)
DownloadResults - Actually gets a list of files ouput by the solver Looks for files in the ouput directory of the job |
void |
DownloadResults(java.lang.String strJobID,
java.io.File fileDestDir)
This method downloads the result files for the job identified by the specified JobID to the specified directory. |
IHWMJob |
GetJobInstance(java.lang.String strJobID)
This method returns the IHWMJob instance held by IHWMJobManager against the specified JobID. |
IHWMJobStatus |
GetJobStatus(IHWMJob job)
Gets the status of a job submitted This method iterates through the jobs vector to verify the status Additionally reads the status from a binary file if that is present in the job output directory |
IHWMJobStatus |
GetJobStatus(java.lang.String strJobStatus)
This is a utility method to convert a String strJobStatus in to an instance of IHWMJobStatus. |
boolean |
LoginToJobSubmissionSystem()
LoginToJobSubmissionSystem - dummy login function We may implement a realistic login in future |
boolean |
LoginToJobSubmissionSystem(java.lang.String strLoginName,
java.lang.String strPasswd)
Login into the job submission system using specified login name and passwd |
void |
RemoveListener(IHWMJobListener listener,
IHWMJob hwmJob)
This method removes the specified listener in order to stop getting call back events from the specified job. |
IHWMJob |
ShowJobSubmissionDialog(IHWMJob job)
This method creates an instance of IHWMJob with parameters set in a GUI dialog. |
java.lang.String |
SubmitJob(IHWMJob job)
SubmitJob - solve the deck file using the solver Add the submitted job to the job manager so that its status can be tracked. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HWMLocalJobManager()
Method Detail |
---|
public void AddJobs(HWMOptistructJob job)
job
- public boolean LoginToJobSubmissionSystem() throws java.lang.Exception
LoginToJobSubmissionSystem
in interface IHWMJobManager
java.lang.Exception
public java.lang.String SubmitJob(IHWMJob job) throws java.lang.Exception
SubmitJob
in interface IHWMJobManager
job
- - Optistruct job
java.lang.Exception
public IHWMJob CreateJobInstance() throws java.lang.Exception
CreateJobInstance
in interface IHWMJobManager
java.lang.Exception
public IHWMJob ShowJobSubmissionDialog(IHWMJob job) throws java.lang.Exception
java.lang.Exception
public IHWMJob CreateJobInstance(java.lang.String strJobID) throws java.lang.Exception
strJobID
-
java.lang.Exception
public IHWMJobStatus GetJobStatus(IHWMJob job)
GetJobStatus
in interface IHWMJobManager
job
-
public int DownloadResults(HWMOptistructJob job)
job
-
public IHWMJob CreateJobInstanceWithDialog() throws java.lang.Exception
IHWMJobManager
CreateJobInstanceWithDialog
in interface IHWMJobManager
java.lang.Exception
public IHWMJob GetJobInstance(java.lang.String strJobID) throws java.lang.Exception
IHWMJobManager
GetJobInstance
in interface IHWMJobManager
strJobID
- The JobID corresponding to which the IHWMJob instance
is required.
java.lang.Exception
public IHWMJobStatus GetJobStatus(java.lang.String strJobStatus) throws java.lang.Exception
IHWMJobManager
GetJobStatus
in interface IHWMJobManager
strJobStatus
- A string representation of the jobstatus.
java.lang.Exception
public boolean LoginToJobSubmissionSystem(java.lang.String strLoginName, java.lang.String strPasswd) throws java.lang.Exception
IHWMJobManager
LoginToJobSubmissionSystem
in interface IHWMJobManager
strLoginName
- Thelogin name for job submission systemstrPasswd
- The password for job submission system.
java.lang.Exception
public void AddJobListener(IHWMJobListener listener, IHWMJob hwmJob)
IHWMJobManager
AddJobListener
in interface IHWMJobManager
listener
- The listener to be added.hwmJob
- The job instance whose event call backs have to be
listened for.public void RemoveListener(IHWMJobListener listener, IHWMJob hwmJob)
IHWMJobManager
RemoveListener
in interface IHWMJobManager
listener
- The listener to be removed.hwmJob
- The job instance whose event call backs have to be stopped
being listened for.public void DownloadResults(java.lang.String strJobID, java.io.File fileDestDir) throws java.lang.Exception
IHWMJobManager
DownloadResults
in interface IHWMJobManager
strJobID
- The JOBID to identify the job whose results have to be
retrieved.fileDestDir
- The destination directory to retrieve files.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |