public final class AuthenticationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.thrift.transport.TSocket |
createTSocket(InetSocketAddress address)
Creates a new Thrift socket what will connect to the given address
|
static org.apache.thrift.transport.TTransport |
getClientTransport(TachyonConf tachyonConf,
InetSocketAddress serverAddress)
Creates a transport per the connection options.
|
static org.apache.thrift.transport.TTransportFactory |
getServerTransportFactory(TachyonConf tachyonConf)
For server side, this method returns a TTransportFactory based on the auth type.
|
public static org.apache.thrift.transport.TTransportFactory getServerTransportFactory(TachyonConf tachyonConf) throws SaslException
tachyonConf - Tachyon ConfigurationSaslException - if building a TransportFactory failspublic static org.apache.thrift.transport.TTransport getClientTransport(TachyonConf tachyonConf, InetSocketAddress serverAddress) throws IOException
tachyonConf - Tachyon ConfigurationserverAddress - the server address which clients will connect toIOException - if building a TransportFactory fails or user login failspublic static org.apache.thrift.transport.TSocket createTSocket(InetSocketAddress address)
address - The given address to connectCopyright © 2015. All Rights Reserved.