me.prettyprint.cassandra.connection.client
Class HSaslThriftClient

java.lang.Object
  extended by me.prettyprint.cassandra.connection.client.HThriftClient
      extended by me.prettyprint.cassandra.connection.client.HSaslThriftClient
All Implemented Interfaces:
HClient

public class HSaslThriftClient
extends HThriftClient
implements HClient


Nested Class Summary
static class HSaslThriftClient.KerberosUserConfiguration
           
 
Field Summary
static Map<String,String> SASL_PROPS
           
 
Fields inherited from class me.prettyprint.cassandra.connection.client.HThriftClient
cassandraClient, keyspaceName, timeout, transport
 
Constructor Summary
HSaslThriftClient(CassandraHost cassandraHost, String servicePrincipalName)
          Constructor
HSaslThriftClient(CassandraHost cassandraHost, String servicePrincipalName, org.apache.thrift.transport.TSSLTransportFactory.TSSLTransportParameters params)
          Constructor
 
Method Summary
 HSaslThriftClient open()
          Open a connection for this client.
static org.apache.thrift.transport.TTransport openKerberosTransport(org.apache.thrift.transport.TTransport socket, String kerberosServicePrincipal)
           
 
Methods inherited from class me.prettyprint.cassandra.connection.client.HThriftClient
clearAuthentication, close, equals, getCassandra, getCassandra, getCassandraHost, getCreatedTime, getLastSuccessTime, getSinceLastUsed, isAlreadyAuthenticated, isOpen, maybeWrapWithTFramedTransport, setAuthenticated, startToUse, toString, updateLastSuccessTime
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface me.prettyprint.cassandra.connection.client.HClient
clearAuthentication, close, getCassandra, getCassandra, getCassandraHost, getCreatedTime, getLastSuccessTime, getSinceLastUsed, isAlreadyAuthenticated, isOpen, setAuthenticated, startToUse, updateLastSuccessTime
 

Field Detail

SASL_PROPS

public static final Map<String,String> SASL_PROPS
Constructor Detail

HSaslThriftClient

public HSaslThriftClient(CassandraHost cassandraHost,
                         String servicePrincipalName)
Constructor

Parameters:
cassandraHost -
servicePrincipalName, - name/_HOST@DOMAIN, e.g. mapred/bdplab0.datastax.com@EXAMPLE.COM

HSaslThriftClient

public HSaslThriftClient(CassandraHost cassandraHost,
                         String servicePrincipalName,
                         org.apache.thrift.transport.TSSLTransportFactory.TSSLTransportParameters params)
Constructor

Parameters:
cassandraHost -
servicePrincipalName, - name/_HOST@DOMAIN, e.g. mapred/bdplab0.datastax.com@EXAMPLE.COM
params -
Method Detail

open

public HSaslThriftClient open()
Open a connection for this client.

Specified by:
open in interface HClient
Overrides:
open in class HThriftClient
Returns:
this object

openKerberosTransport

public static org.apache.thrift.transport.TTransport openKerberosTransport(org.apache.thrift.transport.TTransport socket,
                                                                           String kerberosServicePrincipal)
                                                                    throws LoginException,
                                                                           org.apache.thrift.transport.TTransportException
Throws:
LoginException
org.apache.thrift.transport.TTransportException


Copyright © 2013. All Rights Reserved.