|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.comm.loadsubmission.ecompute.HWMEComputeJobManager
public class HWMEComputeJobManager
Title: HWMEComputeJobManager Description: This class gives a concrete implementation to the interface IHWMJobManager. The IHWMJobManager interface abstracts the operation of submitting CAE analysis jobs to a solver and managing the results. Company: Altair Engineering
Constructor Summary | |
---|---|
HWMEComputeJobManager()
Def Cons |
Method Summary | |
---|---|
void |
AddJobListener(IHWMJobListener listener,
IHWMJob hwmJob)
AddJobListener - adds the run entity as a listener |
void |
AddJobs(HWMEComputeJob ecompJob)
Adds jobs to the job manager IMP : job must have a job ID |
boolean |
AutoLoginToEcompute()
AutoLogin into the job submission system using username and password stored in the job manager instance. |
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)
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 |
CreateJobInstanceWithDialog()
CreateJobInstanceWithDialog - creates a job instance using parameters from an interactive dialog. |
int |
DownloadResults(HWMEComputeJob job)
This method downloads the result files for the job identified by the specified job instance |
void |
DownloadResults(java.lang.String strJobID,
java.io.File fileDestDir)
DownloadResults - downloads results from E-compute |
java.lang.String |
GetAuthenticatedUser()
Gets the user name once it has been authenticated by the user. |
IHWMJob |
GetJobInstance(java.lang.String strJobID)
This method returns the IHWMJob instance held by IHWMJobManager against the specified JobID. |
java.util.Vector |
GetJobs()
|
IHWMJobStatus |
GetJobStatus(IHWMJob job)
Gets the status of a job submitted to E-Compute This method contacts the E-compute server to verify the status |
IHWMJobStatus |
GetJobStatus(java.lang.String strJobStatus)
Utility method to convert the a job status string to IHWMJobStatus |
java.lang.String |
GetName()
Gets the name of the JobManger. |
java.util.Vector |
GetSolverProfiles()
Gets the solver profiles from E-Compute |
java.lang.String |
GetTitle()
Gets the Title of the JobManger. |
boolean |
LoginToJobSubmissionSystem()
Login into the job submission system using no arguments In this case the login gui will pop up |
boolean |
LoginToJobSubmissionSystem(java.lang.String strLoginName,
java.lang.String strPasswd)
Login into the job submission system using specified login name and passwd |
void |
ReadServerInfo(org.jdom.Element elemServerInfo)
This method reads the e-compute server specific information held in the ServerInfo block of the HDM config file(caedmconfig.xml) . |
void |
RemoveListener(IHWMJobListener listener,
IHWMJob hwmJob)
RemoveListener - removes the run entity that is a listener |
void |
SetName(java.lang.String strName)
Sets the name of the JobManger. |
void |
SetTitle(java.lang.String strTitle)
Sets the Title of the JobManger. |
IHWMJob |
ShowJobSubmissionDialog(IHWMJob job)
This method creates an instance of IHWMJob with parameters set in a GUI dialog. |
void |
StartPollingForCompletion(java.lang.String strJobID)
StartPollingForCompletion starts the E-Compute job poller starts the job status tracking thread if it had been stopped |
void |
StopPollingForCompletion()
StopPollingForCompletion - Stops the job status tracker thread Sets the run flag on the thread object to false to stop its execution |
java.lang.String |
SubmitJob(IHWMJob job)
SubmitJob - submits a job to E-Compute |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HWMEComputeJobManager()
Method Detail |
---|
public void SetName(java.lang.String strName) throws java.lang.Exception
strName
- The name of the JobManger.
java.lang.Exception
public java.lang.String GetName() throws java.lang.Exception
java.lang.Exception
public void SetTitle(java.lang.String strTitle) throws java.lang.Exception
strName
- The Title of the JobManger.
java.lang.Exception
public java.lang.String GetTitle() throws java.lang.Exception
java.lang.Exception
public void ReadServerInfo(org.jdom.Element elemServerInfo) throws java.lang.Exception
elemSrvrInfo
- The ServerInfo xml block of the HDM config file
that encapsulates the e-compute server specific information.
java.lang.Exception
public boolean LoginToJobSubmissionSystem(java.lang.String strLoginName, java.lang.String strPasswd) throws java.lang.Exception
LoginToJobSubmissionSystem
in interface IHWMJobManager
strLoginName
- Thelogin name for job submission systemstrPasswd
- The password for job submission system.
java.lang.Exception
public boolean LoginToJobSubmissionSystem() throws java.lang.Exception
LoginToJobSubmissionSystem
in interface IHWMJobManager
java.lang.Exception
public boolean AutoLoginToEcompute() throws java.lang.Exception
java.lang.Exception
public java.lang.String SubmitJob(IHWMJob job)
SubmitJob
in interface IHWMJobManager
job
-
public IHWMJob CreateJobInstanceWithDialog()
CreateJobInstanceWithDialog
in interface IHWMJobManager
java.lang.Exception
public IHWMJob CreateJobInstance() throws java.lang.Exception
CreateJobInstance
in interface IHWMJobManager
java.lang.Exception
public IHWMJob CreateJobInstance(java.lang.String strJobID) throws java.lang.Exception
java.lang.Exception
public IHWMJob ShowJobSubmissionDialog(IHWMJob job) throws java.lang.Exception
java.lang.Exception
public IHWMJob GetJobInstance(java.lang.String strJobID)
GetJobInstance
in interface IHWMJobManager
strJobID
-
java.lang.Exception
public void RemoveListener(IHWMJobListener listener, IHWMJob hwmJob)
RemoveListener
in interface IHWMJobManager
listener
- hwmJob
- public void AddJobListener(IHWMJobListener listener, IHWMJob hwmJob)
AddJobListener
in interface IHWMJobManager
listener
- hwmJob
- public void StartPollingForCompletion(java.lang.String strJobID)
strJobID
- - job to be added for pollingpublic void StopPollingForCompletion()
public void DownloadResults(java.lang.String strJobID, java.io.File fileDestDir)
DownloadResults
in interface IHWMJobManager
strJobID
- fileDestDir
- public int DownloadResults(HWMEComputeJob job) throws java.lang.Exception
java.lang.Exception
public java.lang.String GetAuthenticatedUser()
public java.util.Vector GetSolverProfiles()
public java.util.Vector GetJobs()
public void AddJobs(HWMEComputeJob ecompJob)
ecompJob
- public IHWMJobStatus GetJobStatus(IHWMJob job)
GetJobStatus
in interface IHWMJobManager
ecompJob
-
public IHWMJobStatus GetJobStatus(java.lang.String strJobStatus)
GetJobStatus
in interface IHWMJobManager
strJobStatus
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |