ProcessorSetting.cs 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. using Quadarax.Application.QLiberace.Common.Attributes;
  2. using Quadarax.Application.QLiberace.Common.Settings;
  3. using Quadarax.Application.QLiberace.Processor.Workers;
  4. namespace Quadarax.Application.QLiberace.Processor.Settings
  5. {
  6. [Module(Base.Constants.Modules.Processor.Code)]
  7. public class ProcessorSetting : ModuleSetting
  8. {
  9. /// <summary>
  10. /// Defines number of <see cref="ComplexWorker"/> working parallel
  11. /// </summary>
  12. public int Workers { get; set; }
  13. /// <summary>
  14. /// Defines number of <see cref="ExecutingWorker"/> working under one instance of <see cref="ComplexWorker"/>
  15. /// </summary>
  16. public int ExecutingThreadsPerWorker { get; set; }
  17. /// <summary>
  18. /// Defines number of <see cref="ProcessingWorker"/> working under one instance of <see cref="ComplexWorker"/>
  19. /// </summary>
  20. public int ProcessingThreadsPerWorker { get; set; }
  21. /// <summary>
  22. /// Defines number of <see cref="GarbageWorker"/> working under one instance of <see cref="ComplexWorker"/>
  23. /// </summary>
  24. public int GarbageThreadsPerWorker { get; set; }
  25. /// <summary>
  26. /// Defines number of <see cref="RetentionWorker"/> working under one instance of <see cref="ComplexWorker"/>
  27. /// </summary>
  28. public int RetentionThreadsPerWorker { get; set; }
  29. }
  30. }