lsst.dax.apdb g9290983e33+ffdc83c6f7
 
Loading...
Searching...
No Matches
lsst.dax.apdb.cassandra.sessionFactory.SessionFactory Class Reference

Public Member Functions

 __init__ (self, ApdbCassandraConfig config)
 
None __del__ (self)
 
Session session (self)
 

Protected Member Functions

tuple[Cluster, Session] _make_session (self)
 
AuthProvider|None _make_auth_provider (self)
 
Mapping[Any, ExecutionProfile] _make_profiles (self)
 

Protected Attributes

 _config = config
 
Cluster|None _cluster = None
 
Session|None _session = None
 

Detailed Description

Implementation of SessionFactory that uses parameters from Apdb
configuration.

Parameters
----------
config : `ApdbCassandraConfig`
    Configuration object.

Member Function Documentation

◆ _make_auth_provider()

AuthProvider | None lsst.dax.apdb.cassandra.sessionFactory.SessionFactory._make_auth_provider ( self)
protected
Make Cassandra authentication provider instance.

◆ _make_profiles()

Mapping[Any, ExecutionProfile] lsst.dax.apdb.cassandra.sessionFactory.SessionFactory._make_profiles ( self)
protected
Make all execution profiles used in the code.

◆ _make_session()

tuple[Cluster, Session] lsst.dax.apdb.cassandra.sessionFactory.SessionFactory._make_session ( self)
protected
Make Cassandra session.

Returns
-------
cluster : `cassandra.cluster.Cluster`
    Cassandra Cluster object
session : `cassandra.cluster.Session`
    Cassandra session object

◆ session()

Session lsst.dax.apdb.cassandra.sessionFactory.SessionFactory.session ( self)
Return Cassandra Session, making new connection if necessary.

Returns
-------
session : `cassandra.cluster.Sesion`
    Cassandra session object.

The documentation for this class was generated from the following file: