Apache JMeter

org.apache.jmeter.protocol.tcp.sampler
Interface TCPClient

All Known Implementing Classes:
TCPClientImpl

public interface TCPClient

Interface required by TCPSampler for TCPClient implementations.


Method Summary
 byte getEolByte()
           
 String read(InputStream is)
           
 void setEolByte(byte eolByte)
           
 void setupTest()
           
 void teardownTest()
           
 void write(OutputStream os, InputStream is)
           
 void write(OutputStream os, String s)
           
 

Method Detail

setupTest

public void setupTest()

teardownTest

public void teardownTest()

write

public void write(OutputStream os,
                  InputStream is)
Parameters:
os - - OutputStream for socket
is - - InputStream to be written to Socket

write

public void write(OutputStream os,
                  String s)
Parameters:
os - - OutputStream for socket
s - - String to write

read

public String read(InputStream is)
Parameters:
is - - InputStream for socket
Returns:
String read from socket

getEolByte

public byte getEolByte()
Returns:
Returns the eolByte.

setEolByte

public void setEolByte(byte eolByte)
Parameters:
eolByte - The eolByte to set.

Apache JMeter

Copyright © 1998-2008 Apache Software Foundation. All Rights Reserved.