|
Server Component Class: CRFramework.VISControls.VISServerControl
GetJobStatistics(JobName As System.String, AppDomainName As System.String)
Returns JobStatisticsCollection
The GetJobStatistics method returns a collection called JobStatisticsCollection, which is a collection of JobStatistics objects which gives statistical information about each data object in the job. You can call this function every few seconds to allow your users to monitor the job in real-time so they can actually see the number of records being read and written.
[VB]
Imports CRFramework.VISControls
Dim VIS As VISServerControl |
Dim jsc As JobStatisticsCollection |
Dim js As JobStatistics |
|
VIS = New VISServerControl() |
|
VIS.UserName = "administrator" |
VIS.Password = "manager" |
VIS.ServerName = "localhost" |
|
VIS.Connect() |
|
jsc = VIS.GetJobStatistics("myJob", "SharedDomain") |
|
For Each js In jsc |
' Use each js (JobStatistics) object to show your users the information |
Next |
|
|
|
[C#]
using CRFramework.VISControls;
VISServerControl VIS; |
JobStatisticsCollection jsc; |
|
VIS = new VISServerControl(); |
|
VIS.UserName = "administrator"; |
VIS.Password = "manager"; |
VIS.ServerName = "localhost"; |
|
VIS.Connect(); |
|
|
jsc = VIS.GetJobStatistics("myJob", "SharedDomain"); |
|
foreach(JobStatistics js in jsc) |
{ |
// Use each js (JobStatistics) object to show your users the information |
} |
© 2003 - 2007 Relational Solutions, Inc. - All rights reserved