Class ConfigFile.BatchService
Configuration values for the Windows batch task service (SoBatchService)
Namespace: SuperOffice.Configuration
Assembly: SoCore.dll
Syntax
public static class BatchService : Object
Properties
CPUThreshold
CPU Threshold value in percentage. This value is used to check the computer's cpu load when spawning a new task. If the total cpu usage is above this value, no more tasks will be started even though max tasks has not been reached.
Declaration
public static int CPUThreshold { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
DiagnosticsWebUri
Returns the url that the machine should bind against when starting the http monitor utility that displays the current state and log in a browser.
Declaration
public static string DiagnosticsWebUri { get; set; }
Property Value
Type | Description |
---|---|
String |
ImpersonateReporterPlugin
Returns true/false if the batch service should impersonate the reporter executor with the document identity.
Declaration
public static bool ImpersonateReporterPlugin { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
MaxTasks
Maximum number of tasks to spawn simultaneously.
Declaration
public static int MaxTasks { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
PollingInterval
Returns the number of seconds to sleep between each time the service checks for new tasks.
Declaration
public static int PollingInterval { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ReporterPath
Returns the path to the reporter executer file. This can be left blank to try the default paths. If the batch service is located in the default location (same location as CRM.Web), there should be no need to change this value. Also note that CRM.Web has a similar field in it's configuration. This specific configuration field should only be used when CRM.Web and the Batch Service are located on different machines.
Declaration
public static string ReporterPath { get; set; }
Property Value
Type | Description |
---|---|
String |
RunTasksInProcess
Set this property to true if batch tasks should be run inprocess (as an asynchron operation) or if it should run under the batch service. Default value is false.
Declaration
public static bool RunTasksInProcess { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ServiceName
Returns the name of the service. This name is the one used to install the service under the service control manager in windows. If you want more than one of this service installed on the same machine, this setting must be unique for each service.
Declaration
public static string ServiceName { get; set; }
Property Value
Type | Description |
---|---|
String |
TaskTimeout
Returns the timeout in seconds for spawned tasks. -1 is infinity.
Declaration
public static int TaskTimeout { get; set; }
Property Value
Type | Description |
---|---|
Int32 |