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 their IResourcePlan to be able to receive information on permitted resources. It's assumed that the client application should maintain a single instance of the IHostResourceManager, as well as manage its lifecycle. On creation the IHostResourceManager should be in inactive state and be activated by the decision of the client application using start() method. One the end of the IHostResourceManager lifecycle the client should call the stop() method to cease resource management activities
    • 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 be null
        Returns:
        The IHostResourceManagementHandle for the client to communicate with the facility. Never null
      • start

        void start()
        Starts the resource manager activity
      • stop

        void stop()
        Stops the resource manager activity