MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / get_state

Method get_state

cassandra/pool.py:569–575  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

567 return [c] if c else []
568
569 def get_state(self):
570 connection = self._connection
571 open_count = 1 if connection and not (connection.is_closed or connection.is_defunct) else 0
572 in_flights = [connection.in_flight] if connection else []
573 orphan_requests = [connection.orphaned_request_ids] if connection else []
574 return {'shutdown': self.is_shutdown, 'open_count': open_count, \
575 'in_flights': in_flights, 'orphan_requests': orphan_requests}
576
577 @property
578 def open_count(self):

Callers 2

test_single_interfaceMethod · 0.45
get_pool_stateMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_single_interfaceMethod · 0.36