Package com._1c.g5.v8.dt.bsl.bm.common
Class BslBmThreadPoolServiceProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.common.BslThreadPoolServiceProvider
-
- com._1c.g5.v8.dt.bsl.bm.common.BslBmThreadPoolServiceProvider
-
- All Implemented Interfaces:
IResourcePlan,IThreadPoolServiceProvider
public class BslBmThreadPoolServiceProvider extends BslThreadPoolServiceProvider implements IResourcePlan
Extension implementation ofBslThreadPoolServiceProvider. This class implementsIResourcePlanfor all activities in bsl module and providesActivityDemandsDefaultAdapterfor it
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bsl.common.BslThreadPoolServiceProvider
ITEMS_FOR_ONE_THREAD
-
Fields inherited from interface com._1c.g5.v8.dt.bsl.common.IThreadPoolServiceProvider
BSL_LAZY_REFERENCE_INSTALLING_ACTIVITY, BSL_LAZY_REFERENCE_RESOLVING_ACTIVITY, BSL_REFERENCE_DESCRIPTION_ACTIVITY, BSL_TYPE_SYSTEM_ACTIVITY, BSL_VALIDATION_ACTIVITY
-
-
Constructor Summary
Constructors Constructor Description BslBmThreadPoolServiceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,IActivityDemandsDefinition>gatherActivities()Proclaim demands of resources for a given set of activities.ForkJoinPoolstartActivity(String activityName)GetsForkJoinPoolfor activity with nameactivityName.voidstopActivity(String activityName)Calling of this method tells that activity was stopped
-
-
-
Method Detail
-
startActivity
public ForkJoinPool startActivity(String activityName)
Description copied from interface:IThreadPoolServiceProviderGetsForkJoinPoolfor activity with nameactivityName. Calling of this method tells that activity was started- Specified by:
startActivityin interfaceIThreadPoolServiceProvider- Overrides:
startActivityin classBslThreadPoolServiceProvider- Parameters:
activityName- name of the bsl module activity, can't benull- Returns:
ForkJoinPoolfor activity with nameactivityName, nevernull
-
stopActivity
public void stopActivity(String activityName)
Description copied from interface:IThreadPoolServiceProviderCalling of this method tells that activity was stopped- Specified by:
stopActivityin interfaceIThreadPoolServiceProvider- Overrides:
stopActivityin classBslThreadPoolServiceProvider- Parameters:
activityName- name of the stopped activity, can't benull
-
gatherActivities
public Map<String,IActivityDemandsDefinition> gatherActivities()
Description copied from interface:IResourcePlanProclaim demands of resources for a given set of activities.- Specified by:
gatherActivitiesin interfaceIResourcePlan- Returns:
- Returns
IActivityDemandsDefinitionmapped to respective name of the activity.
-
-