Solid Framework SDK 10.0.12602
SDK for converting and extracting value from PDFs
|
Represents types of Job Processor. More...
Public Member Functions | |
JobProcessor () | |
Initializes a new instance of the JobProcessor class. | |
JobProcessor (string jobHandlerPath, string jobHandlerArguments="") | |
Initializes a new instance of the JobProcessor class with a specific JobHandler. More... | |
void | ResetStatistics () |
Resets and clears the statistic counters that provide information about the number and state of conversions that were allocated to this JobProcessor. | |
ReadOnlyCollection< WorkerStatistics > | GetStatistics () |
Gets a read only collection of the statistics about the conversions that were allocated to this JobProcessor. More... | |
void | ClearRemainingQueue (bool triggerEvents=false) |
Clears the remaining queue. More... | |
void | RemoveJobFromDupList (int jobId) |
Remove a job from the Duplicate list. More... | |
virtual void | Log (string message) |
void | SubmitJob (JobEnvelope jobEnvelope) |
Submits the job. More... | |
void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
void | WaitTillComplete () |
Waits the till complete. | |
bool | IsBusy () |
Determines whether this instance is busy. More... | |
void | Kill () |
Kills this instance. | |
void | Close () |
Closes this instance. | |
Static Public Member Functions | |
static void | WorkerMain () |
Workers the main. | |
Properties | |
bool | KeepJobs [getset] |
Gets or sets a value indicating whether keep jobs. More... | |
bool | Allow64on32 [getset] |
Gets or sets a value indicating whether to run 64 bit job handlers from a 32 user application on a 64 bit OS. More... | |
ReadOnlyCollection< JobEnvelope > | ProcessedJobs [get] |
Gets the list of processed jobs. More... | |
bool | DuplicateChecking [getset] |
int | WorkerCount [getset] |
Gets or sets the worker count. More... | |
int | WorkerJobsBeforeRecycle [getset] |
Gets or sets the number of conversions that should be handled by a single WorkerProcess before it is killed and replaced. The default value is 100. | |
TimeSpan | WorkerTimeOut [getset] |
Gets or sets the worker time out. More... | |
int | QueuedJobs [get] |
Gets the number of jobs in the queue | |
int | TotalJobs [getset] |
Gets or sets the total jobs. More... | |
bool | Running [getset] |
Gets or sets whether the JobProcessor is running. More... | |
Events | |
EventHandler< JobProgressEventArgs > | JobProgressEvent |
Occurs when job progress event is raised. | |
EventHandler< JobCompletedEventArgs > | JobCompletedEvent |
Occurs when a job is completed. | |
EventHandler< QueueEmptyEventArgs > | QueueEmptyEvent |
Occurs when the job queue becomes empty. | |
Represents types of Job Processor.
SolidFramework.Services.JobProcessor.JobProcessor | ( | string | jobHandlerPath, |
string | jobHandlerArguments = "" |
||
) |
Initializes a new instance of the JobProcessor class with a specific JobHandler.
jobHandlerPath | The path to the JobHandler executable that will be doing the work |
jobHandlerArguments | The command line arguments to provide the JobHandler executable, "{WorkerNumber}" will be substituted with the worker number |
void SolidFramework.Services.JobProcessor.ClearRemainingQueue | ( | bool | triggerEvents = false | ) |
Clears the remaining queue.
triggerEvents | Whether JobCompletedEvent should fire for the cancelled jobs |
ReadOnlyCollection< WorkerStatistics > SolidFramework.Services.JobProcessor.GetStatistics | ( | ) |
Gets a read only collection of the statistics about the conversions that were allocated to this JobProcessor.
bool SolidFramework.Services.JobProcessor.IsBusy | ( | ) |
Determines whether this instance is busy.
true
if this instance is busy; otherwise, false
. void SolidFramework.Services.JobProcessor.RemoveJobFromDupList | ( | int | jobId | ) |
Remove a job from the Duplicate list.
jobId |
void SolidFramework.Services.JobProcessor.SubmitJob | ( | JobEnvelope | jobEnvelope | ) |
Submits the job.
jobEnvelope | The job envelope. |
|
getset |
Gets or sets a value indicating whether to run 64 bit job handlers from a 32 user application on a 64 bit OS.
true
if running 64 bit JobHandler on a 32 bit JobProcesser is allowed; otherwise, false
.
|
getset |
Gets or sets a value indicating whether keep jobs.
true
if keep jobs; otherwise, false
.
|
get |
Gets the list of processed jobs.
The processed jobs.
|
getset |
Gets or sets whether the JobProcessor is running.
This property will generally remain true
once it has been set. Use IsBusy to identify whether processing has completed, or use the QueueEmptyEvent to identify when processing completes.
|
getset |
Gets or sets the total jobs.
The total jobs.
|
getset |
Gets or sets the worker count.
The worker count.
|
getset |
Gets or sets the worker time out.
The worker time out.