org.apache.jmeter.protocol.tcp.sampler

Class AbstractTCPClient

Implemented Interfaces:
TCPClient
Known Direct Subclasses:
BinaryTCPClientImpl, TCPClientDecorator, TCPClientImpl

public abstract class AbstractTCPClient
extends Object
implements TCPClient

Basic implementation of TCPClient interface.

Field Summary

protected byte
eolByte
protected boolean
useEolByte

Method Summary

byte
getEolByte()
Get the end-of-line/end-of-message byte.
void
setEolByte(int eolInt)
Set the end-of-line/end-of-message byte.
void
setupTest()
Versions of JMeter after 2.3.2 invoke this method when the thread starts.
void
teardownTest()
Versions of JMeter after 2.3.2 invoke this method when the thread ends.

Field Details

eolByte

protected byte eolByte

useEolByte

protected boolean useEolByte

Method Details

getEolByte

public byte getEolByte()
Get the end-of-line/end-of-message byte.
Specified by:
getEolByte in interface TCPClient
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:
setEolByte in interface TCPClient
Parameters:
eolInt - The value to set

setupTest

public void setupTest()
Versions of JMeter after 2.3.2 invoke this method when the thread starts.
Specified by:
setupTest in interface TCPClient

teardownTest

public void teardownTest()
Versions of JMeter after 2.3.2 invoke this method when the thread ends.
Specified by:
teardownTest in interface TCPClient

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