Package com._1c.g5.resourcemanagement
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 Summary
Fields Modifier and Type Field Description static int
NO_SPECIFIC_CORE_REQUIREMENTS
Default core requirements (system doesn't control the number of used cores)
-
Constructor Summary
Constructors Constructor Description ActivityResourcePermissions(int cores, SystemLoadState loadState)
Constructs resource permissionsActivityResourcePermissions(SystemLoadState loadState)
Constructs resource permissions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCores()
Gets the number of cores available for the target activity.SystemLoadState
getLoadState()
Gets the last load state of the system
-
-
-
Field Detail
-
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:
- Constant Field Values
-
-
Constructor Detail
-
ActivityResourcePermissions
public ActivityResourcePermissions(int cores, SystemLoadState loadState)
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
public ActivityResourcePermissions(SystemLoadState loadState)
Constructs resource permissions- Parameters:
loadState
- The last load state. May not benull
-
-
Method Detail
-
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
-
-