org.apache.hadoop.hive.thrift
Class TUGIContainingTransport

java.lang.Object
  extended by org.apache.thrift.transport.TTransport
      extended by org.apache.hadoop.hive.thrift.TFilterTransport
          extended by 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.


Nested Class Summary
static class TUGIContainingTransport.Factory
          Factory to create TUGIContainingTransport.
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hive.thrift.TFilterTransport
wrapped
 
Constructor Summary
TUGIContainingTransport(org.apache.thrift.transport.TTransport wrapped)
           
 
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
 

Constructor Detail

TUGIContainingTransport

public TUGIContainingTransport(org.apache.thrift.transport.TTransport wrapped)
Method Detail

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