public class BulkLoadConnectionFactory extends DefaultConnectionFactory implements StreamConnectionFactory
MAX_CONNECT_ATTEMPTS
Constructor and Description |
---|
BulkLoadConnectionFactory(EncryptionOptions.ServerEncryptionOptions encryptionOptions,
int storagePort) |
Modifier and Type | Method and Description |
---|---|
io.netty.channel.Channel |
createConnection(OutboundConnectionSettings template,
int messagingVersion) |
boolean |
supportsPreferredIp()
Provide way to disable getPreferredIP() for tools without access to the system keyspace
|
public BulkLoadConnectionFactory(EncryptionOptions.ServerEncryptionOptions encryptionOptions, int storagePort)
public io.netty.channel.Channel createConnection(OutboundConnectionSettings template, int messagingVersion) throws java.io.IOException
createConnection
in interface StreamConnectionFactory
createConnection
in class DefaultConnectionFactory
java.io.IOException
public boolean supportsPreferredIp()
StreamConnectionFactory
CASSANDRA-17663 moves calls to SystemKeyspace.getPreferredIP() outside of any threads that are regularly interrupted. However the streaming subsystem is also used by the bulk loader tool, which does not have direct access to the local tables and uses the client metadata/queries to retrieve it.
supportsPreferredIp
in interface StreamConnectionFactory
Copyright © 2009- The Apache Software Foundation