com.twitter.common.thrift.testing
Class MockTSocket

java.lang.Object
  extended by org.apache.thrift.transport.TTransport
      extended by org.apache.thrift.transport.TIOStreamTransport
          extended by org.apache.thrift.transport.TSocket
              extended by com.twitter.common.thrift.testing.MockTSocket

public class MockTSocket
extends org.apache.thrift.transport.TSocket


Field Summary
static String HOST
           
static int PORT
           
 
Fields inherited from class org.apache.thrift.transport.TIOStreamTransport
inputStream_, outputStream_
 
Constructor Summary
MockTSocket()
           
 
Method Summary
 void close()
           
 boolean isOpen()
           
 void open()
           
 
Methods inherited from class org.apache.thrift.transport.TSocket
getSocket, setTimeout
 
Methods inherited from class org.apache.thrift.transport.TIOStreamTransport
flush, read, write
 
Methods inherited from class org.apache.thrift.transport.TTransport
consumeBuffer, getBuffer, getBufferPosition, getBytesRemainingInBuffer, peek, readAll, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOST

public static final String HOST
See Also:
Constant Field Values

PORT

public static final int PORT
See Also:
Constant Field Values
Constructor Detail

MockTSocket

public MockTSocket()
Method Detail

open

public void open()
Overrides:
open in class org.apache.thrift.transport.TSocket

isOpen

public boolean isOpen()
Overrides:
isOpen in class org.apache.thrift.transport.TSocket

close

public void close()
Overrides:
close in class org.apache.thrift.transport.TSocket