Package com._1c.g5.resourcemanagement
Class ActivityResourcePermissions
java.lang.Object
com._1c.g5.resourcemanagement.ActivityResourcePermissions
ActivityResourcePermissions
defines the amount of resources permitted for an activity to use.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Default core requirements (system doesn't control the number of used cores) -
Constructor Summary
ConstructorsConstructorDescriptionActivityResourcePermissions
(int cores, SystemLoadState loadState) Constructs resource permissionsActivityResourcePermissions
(SystemLoadState loadState) Constructs resource permissions -
Method Summary
Modifier and TypeMethodDescriptionint
getCores()
Gets the number of cores available for the target activity.Gets the last load state of the system
-
Field Details
-
NO_SPECIFIC_CORE_REQUIREMENTS
public static final int NO_SPECIFIC_CORE_REQUIREMENTSDefault core requirements (system doesn't control the number of used cores)- See Also:
-
-
Constructor Details
-
ActivityResourcePermissions
Constructs resource permissions- Parameters:
cores
- The number of cores. Could be positive orNO_SPECIFIC_CORE_REQUIREMENTS
loadState
- The last load state. May not benull
-
ActivityResourcePermissions
Constructs resource permissions- Parameters:
loadState
- The last load state. May not benull
-
-
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
Gets the last load state of the system- Returns:
- The last load state of the system. May not be
null
-