Class AbstractTCPClient
- java.lang.Object
-
- org.apache.jmeter.protocol.tcp.sampler.AbstractTCPClient
-
- All Implemented Interfaces:
TCPClient
- Direct Known Subclasses:
BinaryTCPClientImpl,TCPClientDecorator,TCPClientImpl
public abstract class AbstractTCPClient extends Object implements TCPClient
Basic implementation of TCPClient interface.
-
-
Field Summary
Fields Modifier and Type Field Description protected byteeolByteprotected booleanuseEolByte
-
Constructor Summary
Constructors Constructor Description AbstractTCPClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCharset()Get the charset.bytegetEolByte()Get the end-of-line/end-of-message byte.voidsetCharset(String charset)voidsetEolByte(int eolInt)Set the end-of-line/end-of-message byte.voidsetupTest()Versions of JMeter after 2.3.2 invoke this method when the thread starts.voidteardownTest()Versions of JMeter after 2.3.2 invoke this method when the thread ends.
-
-
-
Method Detail
-
getEolByte
public byte getEolByte()
Get the end-of-line/end-of-message byte.- Specified by:
getEolBytein interfaceTCPClient- Returns:
- Returns the eolByte.
-
setEolByte
public void setEolByte(int eolInt)
Set the end-of-line/end-of-message byte. If the value is out of range of a byte, then it is to be ignored.- Specified by:
setEolBytein interfaceTCPClient- Parameters:
eolInt- The value to set
-
setupTest
public void setupTest()
Versions of JMeter after 2.3.2 invoke this method when the thread starts.
-
teardownTest
public void teardownTest()
Versions of JMeter after 2.3.2 invoke this method when the thread ends.- Specified by:
teardownTestin interfaceTCPClient
-
getCharset
public String getCharset()
Description copied from interface:TCPClientGet the charset.- Specified by:
getCharsetin interfaceTCPClient- Returns:
- the charset
-
setCharset
public void setCharset(String charset)
- Parameters:
charset- the charset to set
-
-