|
static Job | MakeJob (string name, Action action, string commonId=null) |
| Make a job. More...
|
|
Definition at line 37 of file JobEngine.cs.
OpenSim.Framework.Monitoring.JobEngine.JobEngine |
( |
string |
name, |
|
|
string |
loggingName |
|
) |
| |
|
inline |
static Job OpenSim.Framework.Monitoring.JobEngine.MakeJob |
( |
string |
name, |
|
|
Action |
action, |
|
|
string |
commonId = null |
|
) |
| |
|
inlinestatic |
Make a job.
We provide this method to replace the constructor so that we can later pool job objects if necessary to reduce memory churn. Normally one would directly call QueueJob() with parameters anyway.
- Returns
- Parameters
-
name | Name. |
action | Action. |
commonId | Common identifier. |
Definition at line 159 of file JobEngine.cs.
bool OpenSim.Framework.Monitoring.JobEngine.QueueJob |
( |
string |
name, |
|
|
Action |
action, |
|
|
string |
commonId = null |
|
) |
| |
|
inline |
Queue the job for processing.
- Returns
true
, if job was queued, false
otherwise.
- Parameters
-
name | Name of job. This appears on the console and in logging. |
action | Action to perform. |
commonId | Common identifier for a set of jobs. This is allows a set of jobs to be removed if required (e.g. all jobs for a given agent. Optional. |
Definition at line 189 of file JobEngine.cs.
bool OpenSim.Framework.Monitoring.JobEngine.QueueJob |
( |
Job |
job | ) |
|
|
inline |
Queue the job for processing.
- Returns
true
, if job was queued, false
otherwise.
- Parameters
-
Definition at line 200 of file JobEngine.cs.
Job OpenSim.Framework.Monitoring.JobEngine.RemoveNextJob |
( |
| ) |
|
|
inline |
Remove the next job queued for processing.
Returns null if there is no next job. Will not remove a job currently being performed.
Definition at line 171 of file JobEngine.cs.
void OpenSim.Framework.Monitoring.JobEngine.Start |
( |
| ) |
|
|
inline |
void OpenSim.Framework.Monitoring.JobEngine.Stop |
( |
| ) |
|
|
inline |
Job OpenSim.Framework.Monitoring.JobEngine.CurrentJob |
|
getset |
The current job that the engine is running.
Will be null if no job is currently running.
Definition at line 60 of file JobEngine.cs.
bool OpenSim.Framework.Monitoring.JobEngine.IsRunning |
|
getset |
int OpenSim.Framework.Monitoring.JobEngine.JobsWaiting |
|
get |
Number of jobs waiting to be processed.
Definition at line 65 of file JobEngine.cs.
string OpenSim.Framework.Monitoring.JobEngine.LoggingName |
|
getset |
int OpenSim.Framework.Monitoring.JobEngine.LogLevel |
|
getset |
string OpenSim.Framework.Monitoring.JobEngine.Name |
|
getset |
int OpenSim.Framework.Monitoring.JobEngine.RequestProcessTimeoutOnStop |
|
getset |
The timeout in milliseconds to wait for at least one event to be written when the recorder is stopping.
Definition at line 70 of file JobEngine.cs.
The documentation for this class was generated from the following file: