cfxdb.realmstore._session¶
Classes¶
Index: |
|
Persisted session database object. |
|
Persisted session information table. |
|
Module Contents¶
- class IndexSessionsBySessionId(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapUint64TimestampUuidIndex:
(sessionid, joined_at) -> session_oid
- class Session(from_fbs: _SessionGen | None = None)[source]¶
Bases:
objectPersisted session database object.
- __slots__ = ('_from_fbs', '_arealm_oid', '_oid', '_session', '_joined_at', '_left_at', '_node_oid',...[source]¶
- _joined_at: numpy.datetime64 | None = None[source]¶
- _left_at: numpy.datetime64 | None = None[source]¶
- property arealm_oid: uuid.UUID | None[source]¶
OID of the application realm this session is/was joined on.
- property authextra: Dict[str, Any] | None[source]¶
The WAMP authextra as provided to the authenticated session.
- property authprovider: str | None[source]¶
The WAMP authprovider that was handling the session authentication.
- property joined_at: numpy.datetime64 | None[source]¶
Timestamp when the session was joined by the router. Epoch time in ns.
- property left_at: numpy.datetime64 | None[source]¶
Timestamp when the session left the router. Epoch time in ns.
- property node_authid: str | None[source]¶
Name (management realm WAMP authid) of the node of the router worker hosting this session.
- property node_oid: uuid.UUID | None[source]¶
OID of the node of the router worker hosting this session.
- property oid: uuid.UUID | None[source]¶
Unlimited time, globally unique, long-term OID of this session. The pair of WAMP session ID and join time
(session, joined_at)bidirectionally maps to sessionoid.
- property proxy_node_authid: str | None[source]¶
Name (management realm WAMP authid) of the node of the proxy worker hosting this session.
- Type:
From proxy (in proxy-router cluster setups)
- property proxy_node_oid: uuid.UUID | None[source]¶
OID of the node of the proxy worker hosting this session.
- Type:
From proxy (in proxy-router cluster setups)
- property proxy_transport: Dict[str, Any] | None[source]¶
Session transport information, the transport from the proxy to the backend router.
- Type:
From proxy (in proxy-router cluster setups)
- property proxy_worker_name: str | None[source]¶
Local worker name of the proxy worker hosting this session.
- Type:
From proxy (in proxy-router cluster setups)
- property proxy_worker_pid: int | None[source]¶
Local worker PID of the proxy worker hosting this session.
- Type:
From proxy (in proxy-router cluster setups)
- class Sessions(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
zlmdb.MapUuidFlatBuffersPersisted session information table.
Map
zlmdb.MapUuidFlatBuffersfromsession_oidtocfxdb.realmstore.Session