| Modifier and Type | Method and Description |
|---|---|
static HostAddress |
HostAddress.from(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
List<HostAddress> |
Configuration.addresses()
addresses
|
static List<HostAddress> |
HostAddress.parse(String spec,
HaMode haMode)
parse - parse server addresses from the URL fragment.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration.Builder |
Configuration.Builder.addresses(HostAddress... hostAddress) |
| Constructor and Description |
|---|
BaseContext(HostAddress hostAddress,
InitialHandshakePacket handshake,
long clientCapabilities,
Configuration conf,
ExceptionFactory exceptionFactory,
com.singlestore.jdbc.client.PrepareCache prepareCache)
Constructor of connection context
|
RedoContext(HostAddress hostAddress,
InitialHandshakePacket handshake,
long clientCapabilities,
Configuration conf,
ExceptionFactory exceptionFactory,
com.singlestore.jdbc.client.PrepareCache prepareCache)
Constructor
|
| Modifier and Type | Field and Description |
|---|---|
protected static ConcurrentMap<HostAddress,Long> |
FailoverClient.denyList
temporary blacklisted hosts
|
| Modifier and Type | Method and Description |
|---|---|
HostAddress |
FailoverClient.getHostAddress() |
HostAddress |
StandardClient.getHostAddress() |
| Modifier and Type | Method and Description |
|---|---|
static Socket |
ConnectionHelper.connectSocket(Configuration conf,
HostAddress hostAddress)
Connect socket
|
static Socket |
ConnectionHelper.createSocket(Configuration conf,
HostAddress hostAddress)
Create socket accordingly to options.
|
static long |
ConnectionHelper.initializeClientCapabilities(Configuration configuration,
long serverCapabilities,
HostAddress hostAddress)
Initialize client capability according to configuration and server capabilities.
|
static Credential |
ConnectionHelper.loadCredential(CredentialPlugin credentialPlugin,
Configuration configuration,
HostAddress hostAddress)
Load user/password plugin if configured to.
|
static SSLSocket |
ConnectionHelper.sslWrapper(HostAddress hostAddress,
Socket socket,
long clientCapabilities,
byte exchangeCharset,
com.singlestore.jdbc.client.Context context,
Writer writer)
Create SSL wrapper
|
static Socket |
ConnectionHelper.standardSocket(Configuration conf,
HostAddress hostAddress)
Use standard socket implementation.
|
| Constructor and Description |
|---|
ReplayClient(Configuration conf,
HostAddress hostAddress,
ClosableLock lock,
boolean skipPostCommands)
Constructor
|
StandardClient(Configuration conf,
HostAddress hostAddress,
ClosableLock lock,
boolean skipPostCommands)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
Writer.setServerThreadId(Long serverThreadId,
HostAddress hostAddress)
Set server thread id.
|
void |
Reader.setServerThreadId(Long serverThreadId,
HostAddress hostAddress)
Set server thread id.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
SocketHandlerFunction.apply(Configuration conf,
HostAddress hostAddress)
Create socket
|
void |
PacketWriter.setServerThreadId(Long serverThreadId,
HostAddress hostAddress)
Set server thread id.
|
void |
PacketReader.setServerThreadId(Long serverThreadId,
HostAddress hostAddress)
Set server thread id.
|
| Modifier and Type | Method and Description |
|---|---|
static HostAddress |
HaMode.getHostWithLessConnections(List<HostAddress> hostAddresses,
ConcurrentMap<HostAddress,Long> denyList)
If all hosts not blacklisted connection number are known, choose the host with the less
connections.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Optional<HostAddress> |
HaMode.getAvailableHost(List<HostAddress> hostAddresses,
ConcurrentMap<HostAddress,Long> denyList)
List of hosts without blacklist entries, ordered according to HA mode
|
static Optional<HostAddress> |
HaMode.getAvailableHostInOrder(List<HostAddress> hostAddresses,
ConcurrentMap<HostAddress,Long> denyList)
Get first available host not in blacklist.
|
static Optional<HostAddress> |
HaMode.getAvailableRoundRobinHost(HaMode haMode,
List<HostAddress> hostAddresses,
ConcurrentMap<HostAddress,Long> denyList)
Get first available host in RoundRobin Order and not in blacklist.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Optional<HostAddress> |
HaMode.getAvailableHost(List<HostAddress> hostAddresses,
ConcurrentMap<HostAddress,Long> denyList)
List of hosts without blacklist entries, ordered according to HA mode
|
abstract Optional<HostAddress> |
HaMode.getAvailableHost(List<HostAddress> hostAddresses,
ConcurrentMap<HostAddress,Long> denyList)
List of hosts without blacklist entries, ordered according to HA mode
|
static Optional<HostAddress> |
HaMode.getAvailableHostInOrder(List<HostAddress> hostAddresses,
ConcurrentMap<HostAddress,Long> denyList)
Get first available host not in blacklist.
|
static Optional<HostAddress> |
HaMode.getAvailableHostInOrder(List<HostAddress> hostAddresses,
ConcurrentMap<HostAddress,Long> denyList)
Get first available host not in blacklist.
|
static Optional<HostAddress> |
HaMode.getAvailableRoundRobinHost(HaMode haMode,
List<HostAddress> hostAddresses,
ConcurrentMap<HostAddress,Long> denyList)
Get first available host in RoundRobin Order and not in blacklist.
|
static Optional<HostAddress> |
HaMode.getAvailableRoundRobinHost(HaMode haMode,
List<HostAddress> hostAddresses,
ConcurrentMap<HostAddress,Long> denyList)
Get first available host in RoundRobin Order and not in blacklist.
|
static HostAddress |
HaMode.getHostWithLessConnections(List<HostAddress> hostAddresses,
ConcurrentMap<HostAddress,Long> denyList)
If all hosts not blacklisted connection number are known, choose the host with the less
connections.
|
static HostAddress |
HaMode.getHostWithLessConnections(List<HostAddress> hostAddresses,
ConcurrentMap<HostAddress,Long> denyList)
If all hosts not blacklisted connection number are known, choose the host with the less
connections.
|
| Constructor and Description |
|---|
ExceptionFactory(Configuration conf,
HostAddress hostAddress)
Connection Exception factory constructor
|
SqlExceptionFactory(Connection connection,
SingleStorePoolConnection poolConnection,
Configuration conf,
HostAddress hostAddress,
long threadId,
Statement statement,
String sql)
Constructor of Exception factory with SQL
|
| Modifier and Type | Method and Description |
|---|---|
default CredentialPlugin |
CredentialPlugin.initialize(Configuration conf,
String userName,
HostAddress hostAddress)
Permit initializing plugin if overridden
|
| Modifier and Type | Method and Description |
|---|---|
CredentialPlugin |
AwsIamCredentialPlugin.initialize(Configuration conf,
String userName,
HostAddress hostAddress) |
| Constructor and Description |
|---|
AwsCredentialGenerator(Properties nonMappedOptions,
String userName,
HostAddress hostAddress)
AWS Generator.
|
| Modifier and Type | Method and Description |
|---|---|
CredentialPlugin |
BrowserCredentialPlugin.initialize(Configuration conf,
String userName,
HostAddress hostAddress) |
| Modifier and Type | Method and Description |
|---|---|
CredentialPlugin |
EnvCredentialPlugin.initialize(Configuration conf,
String userName,
HostAddress hostAddress) |
| Modifier and Type | Method and Description |
|---|---|
CredentialPlugin |
PropertiesCredentialPlugin.initialize(Configuration conf,
String userName,
HostAddress hostAddress) |
| Modifier and Type | Method and Description |
|---|---|
CredentialPlugin |
JwtCredentialPlugin.initialize(Configuration conf,
String userName,
HostAddress hostAddress) |
Copyright © 2025 SingleStore. All rights reserved.