|
Server Component Class: CRFramework.VISControls.VISServerControl
GetJobStatus(JobName As System.String, AppDomainName As System.String)
Returns JobStatus
The GetJobStatus method returns a JobStatus object that contains information related to the Status of the job such as it's current running status, and the process Id if the job is in a Running state.
[VB]
Imports CRFramework.VISControls
Dim VIS As VISServerControl |
Dim js As JobStatus |
|
VIS = New VISServerControl() |
|
VIS.UserName = "administrator" |
VIS.Password = "manager" |
VIS.ServerName = "localhost" |
|
VIS.Connect() |
|
js = VIS.GetJobStatus("myJob", "SharedDomain") |
If js.JobStatus = JobStatus.JobStatusTypes.Running Then |
' Job is Running |
End If |
[C#]
using CRFramework.VISControls;
VISServerControl VIS; |
JobStatus js; |
|
VIS = new VISServerControl(); |
|
VIS.UserName = "administrator"; |
VIS.Password = "manager"; |
VIS.ServerName = "localhost"; |
|
VIS.Connect(); |
|
|
js = VIS.GetJobStatus("myJob", "SharedDomain"); |
if (js.JobStatus == JobStatus.JobStatusTypes.Running) |
{ |
// Job is running |
} |
|
© 2003 - 2007 Relational Solutions, Inc. - All rights reserved