Package com._1c.g5.resourcemanagement
Interface IHostResourceManager
-
public interface IHostResourceManager
IHostResourceManager
manages physical resources of the client host and balances them between different activities of the EDT. Client services should provide theirIResourcePlan
to be able to receive information on permitted resources. It's assumed that the client application should maintain a single instance of theIHostResourceManager
, as well as manage its lifecycle. On creation theIHostResourceManager
should be in inactive state and be activated by the decision of the client application usingstart()
method. One the end of theIHostResourceManager
lifecycle the client should call thestop()
method to cease resource management activities
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IHostResourceManagementHandle
registerResourcePlan(IResourcePlan plan)
Registers the client resource plan.void
start()
Starts the resource manager activityvoid
stop()
Stops the resource manager activity
-
-
-
Method Detail
-
registerResourcePlan
IHostResourceManagementHandle registerResourcePlan(IResourcePlan plan)
Registers the client resource plan. The plan should be registered on early stages of the client service initilization for the system to be able to balance resources before static services creation/initialization.- Parameters:
plan
- The resource plan to register. Cannot benull
- Returns:
- The
IHostResourceManagementHandle
for the client to communicate with the facility. Nevernull
-
start
void start()
Starts the resource manager activity
-
stop
void stop()
Stops the resource manager activity
-
-