Class TemporaryCqlSessionProvider
- java.lang.Object
-
- org.apache.cassandra.sidecar.testing.TemporaryCqlSessionProvider
-
- All Implemented Interfaces:
org.apache.cassandra.sidecar.common.server.CQLSessionProvider
public class TemporaryCqlSessionProvider extends java.lang.Object implements org.apache.cassandra.sidecar.common.server.CQLSessionProviderA CQL Session provider that always connects to and queries all hosts provided to it. Useful for integration testing, but will eventually be removed once issues with the Sidecar's CQLSessionProviderImpl are resolved.
-
-
Constructor Summary
Constructors Constructor Description TemporaryCqlSessionProvider(java.util.List<java.net.InetSocketAddress> contactPoints, com.datastax.driver.core.NettyOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()com.datastax.driver.core.Sessionget()com.datastax.driver.core.SessiongetIfConnected()
-
-
-
Method Detail
-
get
@Nullable public com.datastax.driver.core.Session get()
- Specified by:
getin interfaceorg.apache.cassandra.sidecar.common.server.CQLSessionProvider
-
getIfConnected
public com.datastax.driver.core.Session getIfConnected()
- Specified by:
getIfConnectedin interfaceorg.apache.cassandra.sidecar.common.server.CQLSessionProvider
-
close
public void close()
- Specified by:
closein interfaceorg.apache.cassandra.sidecar.common.server.CQLSessionProvider
-
-