CIMIndicationListener¶
- class lmiwbem.lmiwbem_core.CIMIndicationListener¶
Constructs a CIMIndicationListener object.
Parameters: - listen_address (unicode) – bind address
- port (int) – listening port
- certfile (unicode) – path to X509 certificate
- keyfile (unicode) – path to X509 private key; may be None, if cert_file also contains private key
- trust_store (unicode) – path to trust store
- add_handler(name, handler, *args, **kwargs)¶
Adds callback for specific indication.
Parameters: - name (str) – indication name
- handler – callable for indication
- args – positional arguments passed to handler
- kwargs – keyword arguments passed to handler
- handlers¶
Property storing list of strings of handlers.
Return type: list
- is_alive¶
Property storing flag, which indicates, if the indication listener is running.
Return type: bool
- listen_address¶
Property storing bind address.
Return type: unicode
- port¶
Property storing listening port.
Return type: int
- remove_handler(name)¶
Removes a specified handler from indication listener.
Parameters: name (str) – indication name Raises: KeyError
- start(retries=1)¶
Starts indication listener.
Parameters: retries (int) – number of bind retries.
- stop()¶
Stops indication listener.
- uses_ssl¶
Property storing flag, which indicates, if the indication listener uses secure connection.
Return type: bool