OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ResourceGrantPolicy.h File Reference
+ Include dependency graph for ResourceGrantPolicy.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  ExecutorResourceMgr_Namespace::ResourceGrantSizeInfo
 
struct  ExecutorResourceMgr_Namespace::ResourceGrantPolicy
 Specifies the policy for granting a resource of a specific ResourceSubtype. Note that this policy only pertains to resource grants on an isolated basis, and that grant policy with respect to concurrent requests is controlled by ConcurrentResourceGrantPolicy. More...
 
struct  ExecutorResourceMgr_Namespace::ConcurrentResourceGrantPolicy
 Specifies the policies for resource grants in the presence of other requests, both under situations of resource undersubscription (i.e there are still resources of the given type in the pool) and oversubscription. More...
 

Namespaces

 ExecutorResourceMgr_Namespace
 

Enumerations

enum  ExecutorResourceMgr_Namespace::ResourceGrantPolicySizeType { ExecutorResourceMgr_Namespace::UNLIMITED, ExecutorResourceMgr_Namespace::CONSTANT, ExecutorResourceMgr_Namespace::RATIO_TO_TOTAL }
 The sizing type for a ResourceGrantPolicy of a given resource type, specifying whether resource grants for a request should be UNLIMITED, CONSTANT, or RATIO_TO_TOTAL (i.e. a ratio of the total available resource). More...
 
enum  ExecutorResourceMgr_Namespace::ResourceConcurrencyPolicy { ExecutorResourceMgr_Namespace::ALLOW_CONCURRENT_REQUESTS, ExecutorResourceMgr_Namespace::ALLOW_SINGLE_REQUEST, ExecutorResourceMgr_Namespace::ALLOW_SINGLE_REQUEST_GLOBALLY, ExecutorResourceMgr_Namespace::DISALLOW_REQUESTS }
 Specifies whether grants for a specified resource can be made concurrently (ALLOW_CONCURRENT_REQEUSTS), can only be made to one request at a time (ALOW_SINGLE_REQUEST), can be made only if there are no other requests in flight, regardless of type (ALLOW_SINGLE_REQUEST_GLOBALLY), or are not allowed at all (DISALLOW_REQUESTS). More...
 

Functions

ResourceGrantPolicy ExecutorResourceMgr_Namespace::gen_unlimited_resource_grant_policy (const ResourceSubtype resource_subtype)
 Generates a ResourceGrantPolicy with ResourceGrantPolicySizeType::UNLIMITED More...
 
ResourceGrantPolicy ExecutorResourceMgr_Namespace::gen_constant_resource_grant_policy (const ResourceSubtype resource_subtype, size_t constant_grant)
 Generates a ResourceGrantPolicy with ResourceGrantPolicySizeType::CONSTANT More...
 
ResourceGrantPolicy ExecutorResourceMgr_Namespace::gen_ratio_resource_grant_policy (const ResourceSubtype resource_subtype, const double ratio_grant)
 Generates a ResourceGrantPolicy with ResourceGrantPolicySizeType::RATIO_TO_TOTAL More...
 
std::string ExecutorResourceMgr_Namespace::get_resouce_concurrency_policy_string (const ResourceConcurrencyPolicy &resource_concurrency_policy)