AppGatewayClient#
- class wattson.hosts.ccx.app_gateway.client.AppGatewayClient(notification_socket_string: str | None = None, query_socket_string: str | None = None, ip_address: str | None = None, client_name: str | None = None, namespace: Namespace | str | None = None)#
Bases:
Thread
Methods
This constructor should always be called with keyword arguments.
get_connection_status
handle_notification
off
on
query
read_data_point_query
register
register_default_notification_handlers
register_notification_handler
register_notification_handler_class
request_data_points
request_grid_value_mapping
Method representing the thread's activity.
set_data_point_query
Start the thread's activity.
stop
trigger
trigger_interrogation
wait_for_connection
Attributes
client_id
client_name
- __init__(notification_socket_string: str | None = None, query_socket_string: str | None = None, ip_address: str | None = None, client_name: str | None = None, namespace: Namespace | str | None = None)#
This constructor should always be called with keyword arguments. Arguments are:
group should be None; reserved for future extension when a ThreadGroup class is implemented.
target is the callable object to be invoked by the run() method. Defaults to None, meaning nothing is called.
name is the thread name. By default, a unique name is constructed of the form “Thread-N” where N is a small decimal number.
args is a list or tuple of arguments for the target invocation. Defaults to ().
kwargs is a dictionary of keyword arguments for the target invocation. Defaults to {}.
If a subclass overrides the constructor, it must make sure to invoke the base class constructor (Thread.__init__()) before doing anything else to the thread.
- run() None #
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
- start() None #
Start the thread’s activity.
It must be called at most once per thread object. It arranges for the object’s run() method to be invoked in a separate thread of control.
This method will raise a RuntimeError if called more than once on the same thread object.