dragon.infrastructure.channel_desc
A class that uniquely defines properties of a managed channel for infrastructure communication.
Classes
Globally available description of a managed channel. |
|
Open type, placeholder, for options on how to make a channel |
- class ChannelDescriptor[source]
Bases:
object
Globally available description of a managed channel.
Attributes:
- nodenonnegative int
which node this channel
- namestr
user assigned unique name of the process
- c_uidnonnegative int
unique channel id
- m_uidnonnegative int
memory pool containing this channel
- sdescbytes-like object
serialized descriptor from the Channels library
- statecls.State enum member
current run state of this process
- __init__(m_uid, c_uid, name, node, state=None, sdesc='')[source]
sdesc - serialized library descriptor
- property sdesc
Returns the serialized library descriptor of the channel.
- class ChannelOptions[source]
Bases:
object
Open type, placeholder, for options on how to make a channel
Attributes:
- local_opts
local channel creation options, such as block size and capacity. see dragon.localservices.options.ChannelOptions
- ref_count
bool, default False, whether GS should count references on this channel and destroy if count reaches zero
NOTE: these options will be growing and the scheme needs thought for organization.