Parallel job server for job containers that inherit from ParallelJobContainerGen.
More...
|
static int | GetNextId () |
| Returns another ID that is unique for objects of the containing class its and derived classes. More...
|
|
volatile bool | _isTestMode = ParallelJobContainerBase.DefaultIsTestMode |
|
int | _sleepTimeMs = DefaultSleepTimeMs |
|
ParallelJobDispatcherBase
< JobContainerType > | _dispatcher |
|
ParallelServerState | _state = ParallelServerState.Idle |
|
JobContainerType | _jobData |
|
bool | _isServer = false |
|
bool | _commandStopServing = false |
|
ThreadPriority | _threadPriority = UtilSystem.ThreadPriority |
|
Thread | _workingThread |
|
bool | _isServerRunning = false |
|
object | Lock [get] |
| This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock. More...
|
|
static int | DefaultOutputLevel [get, set] |
| Default output level for objects of this and derived types. More...
|
|
int | OutputLevel [get, set] |
| Output level the current object. More...
|
|
static bool | DefaultIsTestMode [get, set] |
| Default value of test mode flag. More...
|
|
bool | IsTestMode [get, set] |
| Whether the current job data conntainer is in test mode. In this mode, delays specified by internal variables are automatically added in job execution. More...
|
|
int | Id [get] |
| Unique ID for objects of the currnet and derived classes. More...
|
|
static int | DefaultSleepTimeMs [get, set] |
| Default sleeping time, in milliseconds, used by parallel job data objects when waiting for fulfillment of some condition in a loop that includes sleeping when condition is not met. More...
|
|
int | SleepTimeMs [get, set] |
| Sleeping time, in milliseconds, used by the current object when waiting for fulfillment of some condition in a loop that includes sleeping when condition is not met. More...
|
|
ParallelJobDispatcherBase
< JobContainerType > | Dispatcher [get, set] |
|
ParallelServerState | State [get, protected set] |
| Gets the state of the current job runner. More...
|
|
bool | IsIdle [get] |
| Gets a flag indicating whether the current job runner is idle. More...
|
|
bool | IsActive [get] |
|
JobContainerType | JobData [get, set] |
| Data for the job that is executed by teh current parallel job runner. More...
|
|
bool | IsServer [get, set] |
| Indicating whether the current job runner work as server. <par>If true then a server is started in a parallel thread that continuously for signals to start jobs.</par> More...
|
|
bool | CommandStopServing [get, protected set] |
| Flag indicating whether the server should be stopped. If set to true and server thread is runing, then the server thread stops when the currently run job completes (or stops immediately if there is no job running). More...
|
|
ThreadPriority | ThreadPriority [get, set] |
| Priority of the server thread. More...
|
|
bool | IsServerRunning [get] |
| Indicates whether the server is currently running or not. More...
|
|
bool | DoRunJobByServer [get, protected set] |
|
object | Lock [get] |
|
int | Id [get] |
| Returns unique ID (in the scope of a given type) of the current object. More...
|
|
Parallel job server for job containers that inherit from ParallelJobContainerGen.
- Template Parameters
-
InputType | Type of inpout data for jobs. |
ResultType | Type of output data for jobs. |
JobContainerType | Type of the job data container used by this parallel server class. It must be be of type ParallelJobContainer<InputType, ResultType>, or must derive form this type. |
- Type Constraints
-
JobContainerType | : | ParallelJobContainerGen | |
JobContainerType | : | InputType | |
JobContainerType | : | ResultType | |