dragon.infrastructure.pool_desc
A class that uniquely defines properties of a managed memory pool for infrastructure communication.
Classes
Globally available descriptior of a pool. |
|
Options object for how a Pool is supposed to be created. |
- class PoolDescriptor
Bases:
object
Globally available descriptior of a pool.
Attributes:
- m_uidnonnegative int
unique memory pool id
- namestr
string indicating pool name that servers as an identifier to query for the pool
- sdescbytes-like object
serialized library descriptor
- nodenonnegative int
which node this memory pool is associated with
- statecls.State enum member
current state of this pool
- __init__(m_uid=0, name='', node=0, state=None, sdesc='')
sdesc - serialized library descriptor
- property sdesc
Returns the serialized library descriptor of the pool.
- get_sdict()
Collect the entire information of the pool.
- Returns:
A dictionary with all key-value pairs of the available description of the pool.
- Return type:
Dictionary
- classmethod from_sdict(sdict)
Returns the descriptor of the memory pool.
- class PoolOptions
Bases:
object
Options object for how a Pool is supposed to be created.
- class Placement
Bases:
Enum
Enum for placement strategy of the pool for its creation.
- LOCAL = 0
- DEFAULT = 1
- SPECIFIC = 2
- __init__(placement=0, target_node=0, sattr='')
sattr - serialized library attributes
placement - enum for placement strategy
target_node - ignored if placement request isn’t for a specific node
- get_sdict()
Collect the different attributes/options of the memory pool.
- Returns:
A dictionary with key-value pairs of the pool creation options.
- Return type:
Dictionary
- static from_sdict(sdict)
Returns the options of the memory pool.