public class SSLTransportFactory extends java.lang.Object implements ITransportFactory
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CIPHER_SUITES | 
| static int | DEFAULT_MAX_FRAME_SIZE | 
| static java.lang.String | KEYSTORE | 
| static java.lang.String | KEYSTORE_PASSWORD | 
| static java.lang.String | PROTOCOL | 
| static int | SOCKET_TIMEOUT | 
| static java.lang.String | TRUSTSTORE | 
| static java.lang.String | TRUSTSTORE_PASSWORD | 
PROPERTY_KEY| Constructor and Description | 
|---|
| SSLTransportFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.thrift.transport.TTransport | openTransport(java.lang.String host,
             int port)Opens a client transport to a thrift server. | 
| void | setOptions(java.util.Map<java.lang.String,java.lang.String> options)Sets an implementation defined set of options. | 
| java.util.Set<java.lang.String> | supportedOptions() | 
public static final int DEFAULT_MAX_FRAME_SIZE
public static final java.lang.String TRUSTSTORE
public static final java.lang.String TRUSTSTORE_PASSWORD
public static final java.lang.String KEYSTORE
public static final java.lang.String KEYSTORE_PASSWORD
public static final java.lang.String PROTOCOL
public static final java.lang.String CIPHER_SUITES
public static final int SOCKET_TIMEOUT
public org.apache.thrift.transport.TTransport openTransport(java.lang.String host,
                                                            int port)
                                                     throws java.lang.Exception
ITransportFactoryTTransport transport = clientTransportFactory.openTransport(address, port); Cassandra.Iface client = new Cassandra.Client(new BinaryProtocol(transport));
openTransport in interface ITransportFactoryhost - fully qualified hostname of the serverport - RPC port of the serverjava.lang.Exception - implementation defined; usually throws TTransportException or IOException
         if the connection cannot be establishedpublic void setOptions(java.util.Map<java.lang.String,java.lang.String> options)
ITransportFactorysetOptions in interface ITransportFactoryoptions - option mappublic java.util.Set<java.lang.String> supportedOptions()
supportedOptions in interface ITransportFactoryCopyright © 2018 The Apache Software Foundation