Class ActivityResourcePermissions

java.lang.Object
com._1c.g5.resourcemanagement.ActivityResourcePermissions

public class ActivityResourcePermissions extends Object
ActivityResourcePermissions defines the amount of resources permitted for an activity to use.
  • Field Details

    • NO_SPECIFIC_CORE_REQUIREMENTS

      public static final int NO_SPECIFIC_CORE_REQUIREMENTS
      Default core requirements (system doesn't control the number of used cores)
      See Also:
  • Constructor Details

    • ActivityResourcePermissions

      public ActivityResourcePermissions(int cores, SystemLoadState loadState)
      Constructs resource permissions
      Parameters:
      cores - The number of cores. Could be positive or NO_SPECIFIC_CORE_REQUIREMENTS
      loadState - The last load state. May not be null
    • ActivityResourcePermissions

      public ActivityResourcePermissions(SystemLoadState loadState)
      Constructs resource permissions
      Parameters:
      loadState - The last load state. May not be null
  • Method Details

    • getCores

      public int getCores()
      Gets the number of cores available for the target activity.
      Returns:
      the cores The number of cores permitted for usage.
    • getLoadState

      public SystemLoadState getLoadState()
      Gets the last load state of the system
      Returns:
      The last load state of the system. May not be null