org.apache.hadoop.hive.thrift
Class TUGIContainingTransport
java.lang.Object
org.apache.thrift.transport.TTransport
org.apache.hadoop.hive.thrift.TFilterTransport
org.apache.hadoop.hive.thrift.TUGIContainingTransport
public class TUGIContainingTransport
- extends TFilterTransport
TUGIContainingTransport associates ugi information with connection (transport).
Wraps underlying TSocket
transport and annotates it with ugi.
Method Summary |
org.apache.hadoop.security.UserGroupInformation |
getClientUGI()
|
Socket |
getSocket()
If the underlying TTransport is an instance of TSocket, it returns the Socket object
which it contains. |
void |
setClientUGI(org.apache.hadoop.security.UserGroupInformation ugi)
|
Methods inherited from class org.apache.hadoop.hive.thrift.TFilterTransport |
close, consumeBuffer, flush, getBuffer, getBufferPosition, getBytesRemainingInBuffer, isOpen, open, peek, read, readAll, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TUGIContainingTransport
public TUGIContainingTransport(org.apache.thrift.transport.TTransport wrapped)
getClientUGI
public org.apache.hadoop.security.UserGroupInformation getClientUGI()
setClientUGI
public void setClientUGI(org.apache.hadoop.security.UserGroupInformation ugi)
getSocket
public Socket getSocket()
- If the underlying TTransport is an instance of TSocket, it returns the Socket object
which it contains. Otherwise it returns null.
Copyright © 2013 The Apache Software Foundation