me.prettyprint.cassandra.connection.client
Class HKerberosThriftClient

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

public class HKerberosThriftClient
extends HThriftClient
implements HClient

Hector client that authenticate against kerberos.

Author:
patricioe (Patricio Echague - patricioe@gmail.com)

Field Summary
 
Fields inherited from class me.prettyprint.cassandra.connection.client.HThriftClient
cassandraClient, keyspaceName, timeout, transport
 
Constructor Summary
HKerberosThriftClient(Subject kerberosTicket, CassandraHost cassandraHost, String servicePrincipalName)
          Constructor
HKerberosThriftClient(Subject kerberosTicket, CassandraHost cassandraHost, String servicePrincipalName, org.apache.thrift.transport.TSSLTransportFactory.TSSLTransportParameters params)
          Constructor
 
Method Summary
 HKerberosThriftClient open()
          Open a connection for this client.
 
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
 

Constructor Detail

HKerberosThriftClient

public HKerberosThriftClient(Subject kerberosTicket,
                             CassandraHost cassandraHost,
                             String servicePrincipalName)
Constructor

Parameters:
kerberosTicket -
cassandraHost -

HKerberosThriftClient

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

Parameters:
kerberosTicket -
cassandraHost -
params -
Method Detail

open

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

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


Copyright © 2013. All Rights Reserved.