Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <TSaslServerTransport.h>
Public Member Functions | |
Factory () | |
Factory (const std::string &mechanism, const std::string &protocol, const std::string &serverName, const std::string &realm, unsigned flags, std::map< std::string, std::string > props, std::vector< struct sasl_callback > callbacks) | |
virtual | ~Factory () |
virtual boost::shared_ptr < TTransport > | getTransport (boost::shared_ptr< TTransport > trans) |
void | addServerDefinition (const std::string &mechanism, const std::string &protocol, const std::string &serverName, const std::string &realm, unsigned int flags, std::map< std::string, std::string > props, std::vector< struct sasl_callback > callbacks) |
Private Attributes | |
std::map< std::string, TSaslServerDefinition * > | serverDefinitionMap_ |
std::map< boost::shared_ptr < TTransport > , boost::shared_ptr < TBufferedTransport > > | transportMap_ |
boost::mutex | transportMap_mutex_ |
Factory to ensure that a given underlying TTransport instance receives the same TSaslServerTransport for both send and receive.
Definition at line 133 of file TSaslServerTransport.h.
|
inline |
Definition at line 135 of file TSaslServerTransport.h.
|
inline |
Create a new Factor for a server definition. Provides a single definition for the server, others may be added.
Definition at line 141 of file TSaslServerTransport.h.
References addServerDefinition().
|
inlinevirtual |
Definition at line 150 of file TSaslServerTransport.h.
|
inline |
Definition at line 159 of file TSaslServerTransport.h.
References serverDefinitionMap_.
Referenced by Factory(), and impala::SaslAuthProvider::GetServerTransportFactory().
|
virtual |
Wraps the transport with the Sasl protocol.
Definition at line 114 of file TSaslServerTransport.cpp.
References serverDefinitionMap_, transportMap_, transportMap_mutex_, and apache::thrift::transport::TSaslServerTransport::TSaslServerTransport().
|
private |
Definition at line 173 of file TSaslServerTransport.h.
Referenced by addServerDefinition(), and getTransport().
|
private |
Definition at line 177 of file TSaslServerTransport.h.
Referenced by getTransport().
|
private |
Definition at line 180 of file TSaslServerTransport.h.
Referenced by getTransport().