irisnative.connection¶
-
class
irisnative.
connection
¶ A connection to an IRIS instance.
Create one by calling the irisnative.createConnection method. The hostname, port, namespace, timeout, and logfile from the last successful connection attempt are saved as properties of the connection object.
Attributes
connection.hostname |
The hostname from the last successful connection attempt. |
connection.port |
The port from the last successful connection attempt. |
connection.namespace |
The namespace from the last successful connection attempt. |
connection.timeout |
The timeout from the last successful connection attempt. |
connection.logfile |
The log file from the last successful connection attempt. |
Methods
connection.close |
Close the connection to the IRIS instance if it is open. |
connection.isClosed |
Return True if the connection is closed. |
connection.isUsingSharedMemory |
Return True if the connection is open and using shared memory. |
-
connection.
close
()¶ Close the connection to the IRIS instance if it is open.
close()
Do nothing if the connection is already closed.
Returns: None Return type: None
-
connection.
isClosed
()¶ Return True if the connection is closed.
isClosed()
Returns: True if the connection is closed, False if it is open. Return type: bool
Return True if the connection is open and using shared memory.
isUsingSharedMemory()
Returns: True if the connection has an open shared memory connection, False otherwise. Return type: bool