Retrieves information about the specified job.
[OperationContractAttribute()]
[FaultContractAttribute(System.Type)]
public GetJobInformationResponse GetJobInformation(
GetJobInformationRequest request
)
<OperationContractAttribute(),
FaultContractAttribute(System.Type)>
Public Function GetJobInformation(
ByVal request As GetJobInformationRequest
) As GetJobInformationResponse
public:
[OperationContractAttribute]
[FaultContractAttribute(System::Type)]
GetJobInformationResponse^ GetJobInformation(
GetJobInformationRequest^ request
)
request
A Leadtools.Services.JobProcessor.DataContracts.GetJobInformationRequest class containing information for the job to be retrieved.
A Leadtools.Services.JobProcessor.DataContracts.GetJobInformationResponse class containing the specified job's information.
Use this method to retrieve all information about the specified job in the Job Processor database.
using LeadtoolsJobProcessorExamples.JobService;
public void GetJobInformation(string jobID)
{
using (JobServiceClient jobServiceClient = new JobServiceClient())
{
GetJobInformationRequest getJobInformationRequest = new GetJobInformationRequest();
getJobInformationRequest.ID = jobID;
GetJobInformationResponse getJobInformationResponse = jobServiceClient.GetJobInformation(getJobInformationRequest);
if (getJobInformationResponse.JobInformation != null && !String.IsNullOrEmpty(getJobInformationResponse.JobInformation.ID))
{
//Show the job information
Console.WriteLine(String.Format("Job ID: {0}", getJobInformationResponse.JobInformation.ID));
Console.WriteLine(String.Format("Add Time: {0}", getJobInformationResponse.JobInformation.AddedTime));
Console.WriteLine(String.Format("Status: {0}", getJobInformationResponse.JobInformation.Status));
Console.WriteLine(String.Format("Attempts: {0}", getJobInformationResponse.JobInformation.Attempts));
if (!String.IsNullOrEmpty(getJobInformationResponse.JobInformation.JobType))
Console.WriteLine(String.Format("Job Type: {0}", getJobInformationResponse.JobInformation.JobType));
if (getJobInformationResponse.JobInformation.LastStartedTime != null)
Console.WriteLine(String.Format("Last Started Time: {0}", getJobInformationResponse.JobInformation.LastStartedTime));
if (getJobInformationResponse.JobInformation.LastUpdatedTime != null)
Console.WriteLine(String.Format("Last Updated Time: {0}", getJobInformationResponse.JobInformation.LastUpdatedTime));
if (getJobInformationResponse.JobInformation.Status == JobStatus.Started)
Console.WriteLine(String.Format("Progress: {0}", getJobInformationResponse.JobInformation.Percentage));
if (!String.IsNullOrEmpty(getJobInformationResponse.JobInformation.Worker))
Console.WriteLine(String.Format("Worker: {0}", getJobInformationResponse.JobInformation.Worker));
if (getJobInformationResponse.JobInformation.Status == JobStatus.Completed)
Console.WriteLine(String.Format("Completed Time: {0}", getJobInformationResponse.JobInformation.CompletedTime));
if (getJobInformationResponse.JobInformation.Status == JobStatus.Failed)
{
Console.WriteLine(String.Format("Failed Time: {0}", getJobInformationResponse.JobInformation.FailedTime));
Console.WriteLine(String.Format("Error ID: {0}", getJobInformationResponse.JobInformation.FailureInformation.FailedErrorID));
Console.WriteLine(String.Format("Error Message: {0}", getJobInformationResponse.JobInformation.FailureInformation.FailedMessage));
}
}
}
}
Public Sub GetJobInformation(ByVal jobID As String)
Using jobServiceClient As JobServiceClient = New JobServiceClient()
Dim getJobInformationRequest As GetJobInformationRequest = New GetJobInformationRequest()
getJobInformationRequest.ID = jobID
Dim getJobInformationResponse As GetJobInformationResponse = jobServiceClient.GetJobInformation(getJobInformationRequest)
If Not getJobInformationResponse.JobInformation Is Nothing AndAlso (Not String.IsNullOrEmpty(getJobInformationResponse.JobInformation.ID)) Then
'Show the job information
Console.WriteLine(String.Format("Job ID: {0}", getJobInformationResponse.JobInformation.ID))
Console.WriteLine(String.Format("Add Time: {0}", getJobInformationResponse.JobInformation.AddedTime))
Console.WriteLine(String.Format("Status: {0}", getJobInformationResponse.JobInformation.Status))
Console.WriteLine(String.Format("Attempts: {0}", getJobInformationResponse.JobInformation.Attempts))
If (Not String.IsNullOrEmpty(getJobInformationResponse.JobInformation.JobType)) Then
Console.WriteLine(String.Format("Job Type: {0}", getJobInformationResponse.JobInformation.JobType))
End If
If Not getJobInformationResponse.JobInformation.LastStartedTime Is Nothing Then
Console.WriteLine(String.Format("Last Started Time: {0}", getJobInformationResponse.JobInformation.LastStartedTime))
End If
If Not getJobInformationResponse.JobInformation.LastUpdatedTime Is Nothing Then
Console.WriteLine(String.Format("Last Updated Time: {0}", getJobInformationResponse.JobInformation.LastUpdatedTime))
End If
If getJobInformationResponse.JobInformation.Status = JobStatus.Started Then
Console.WriteLine(String.Format("Progress: {0}", getJobInformationResponse.JobInformation.Percentage))
End If
If (Not String.IsNullOrEmpty(getJobInformationResponse.JobInformation.Worker)) Then
Console.WriteLine(String.Format("Worker: {0}", getJobInformationResponse.JobInformation.Worker))
End If
If getJobInformationResponse.JobInformation.Status = JobStatus.Completed Then
Console.WriteLine(String.Format("Completed Time: {0}", getJobInformationResponse.JobInformation.CompletedTime))
End If
If getJobInformationResponse.JobInformation.Status = JobStatus.Failed Then
Console.WriteLine(String.Format("Failed Time: {0}", getJobInformationResponse.JobInformation.FailedTime))
Console.WriteLine(String.Format("Error ID: {0}", getJobInformationResponse.JobInformation.FailureInformation.FailedErrorID))
Console.WriteLine(String.Format("Error Message: {0}", getJobInformationResponse.JobInformation.FailureInformation.FailedMessage))
End If
End If
End Using
End Sub
Programming with the LEADTOOLS Distributed Computing (Job Processor) SDK
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.