![]() |
ctrlX Data Layer API for Python
1.6.0
The ctrlX Data Layer API allows access to the ctrlX Data Layer with Python
|
Public Member Functions | |
def | __init__ (self, datalayer.client.Client client) |
def | __enter__ (self) |
def | __exit__ (self, exc_type, exc_val, exc_tb) |
def | close (self) |
str | id (self) |
def | on_close (self) |
Result | subscribe (self, str address) |
Result | subscribe_multi (self, typing.List[str] address) |
Result | unsubscribe (self, str address) |
Result | unsubscribe_all (self) |
Result | unsubscribe_multi (self, typing.List[str] address) |
Definition at line 19 of file subscription_sync.py.
def __init__ | ( | self, | |
datalayer.client.Client | client | ||
) |
[in] | client | Reference to the client |
Definition at line 25 of file subscription_sync.py.
References SubscriptionSync.__client, SubscriptionAsync.__client, Provider.__closed, SubscriptionSync.__closed, SubscriptionAsync.__closed, Client.__closed, ProviderNode.__closed, SubscriptionSync.__id, SubscriptionAsync.__id, SubscriptionSync.__ptr_notify, and SubscriptionAsync.__ptr_notify.
str id | ( | self | ) |
Subscription ID.
@return <str> id
Reimplemented from Subscription.
Definition at line 54 of file subscription_sync.py.
References SubscriptionSync.__create_sub_callback(), SubscriptionSync.__id, SubscriptionAsync.__id, SubscriptionSync.__ptr_notify, and SubscriptionAsync.__ptr_notify.
Result subscribe | ( | self, | |
str | address | ||
) |
Adds a node to a subscription id.
[in] | address | Address of a node, that should be added to the given subscription. |
Definition at line 130 of file subscription_sync.py.
References SubscriptionSync.__client, SubscriptionAsync.__client, and Subscription.id().
Result subscribe_multi | ( | self, | |
typing.List[str] | address | ||
) |
Adds a list of nodes to a subscription id.
[in] | address | List of Addresses of a node, that should be added to the given subscription. |
[in] | count | Count of addresses. |
Definition at line 153 of file subscription_sync.py.
References SubscriptionSync.__client, SubscriptionAsync.__client, and Subscription.id().
Result unsubscribe | ( | self, | |
str | address | ||
) |
Removes a node from a subscription id.
[in] | address | Address of a node, that should be removed to the given subscription. |
Definition at line 141 of file subscription_sync.py.
References SubscriptionSync.__client, SubscriptionAsync.__client, and Subscription.id().
Result unsubscribe_all | ( | self | ) |
Removes subscription id completely.
Definition at line 176 of file subscription_sync.py.
References SubscriptionSync.__client, SubscriptionAsync.__client, and Subscription.id().
Referenced by SubscriptionSync.close().
Result unsubscribe_multi | ( | self, | |
typing.List[str] | address | ||
) |
Removes a set of nodes from a subscription id.
[in] | address | Set of addresses of nodes, that should be removed to the given subscription. |
Definition at line 165 of file subscription_sync.py.
References SubscriptionSync.__client, SubscriptionAsync.__client, and Subscription.id().