public class TCPSampler
extends org.apache.jmeter.samplers.AbstractSampler
implements org.apache.jmeter.testelement.ThreadListener, org.apache.jmeter.samplers.Interruptible
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSNAME |
static String |
CLOSE_CONNECTION |
static boolean |
CLOSE_CONNECTION_DEFAULT |
static String |
EOL_BYTE |
static String |
FILENAME |
static String |
NODELAY |
static String |
PORT |
static String |
RE_USE_CONNECTION |
static boolean |
RE_USE_CONNECTION_DEFAULT |
static String |
REQUEST |
static String |
SERVER |
static String |
SO_LINGER |
static String |
TIMEOUT |
static String |
TIMEOUT_CONNECT |
| Constructor and Description |
|---|
TCPSampler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
applies(org.apache.jmeter.config.ConfigTestElement configElement) |
String |
getClassname() |
int |
getConnectTimeout() |
int |
getEolByte() |
String |
getFilename() |
String |
getLabel()
Returns a formatted string label describing this sampler Example output:
Tcp://Tcp.nowhere.com/pub/README.txt
|
boolean |
getNoDelay() |
String |
getPassword() |
int |
getPort() |
String |
getRequestData() |
String |
getServer() |
int |
getSoLinger() |
int |
getTimeout() |
String |
getUsername() |
boolean |
interrupt() |
boolean |
isCloseConnection() |
boolean |
isReUseConnection() |
org.apache.jmeter.samplers.SampleResult |
sample(org.apache.jmeter.samplers.Entry e) |
void |
setClassname(String classname) |
void |
setCloseConnection(String close) |
void |
setConnectTimeout(String newTimeout) |
void |
setEolByte(String eol) |
void |
setFilename(String newFilename) |
void |
setPort(String newFilename) |
void |
setRequestData(String newRequestData) |
void |
setServer(String newServer) |
void |
setSoLinger(String soLinger) |
void |
setTimeout(String newTimeout) |
void |
threadFinished() |
void |
threadStarted() |
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyfinalize, getClass, notify, notifyAll, toString, wait, wait, waitaddTestElement, canRemove, clear, clearTestElementChildren, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removed, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traversepublic static final String SERVER
public static final String PORT
public static final String FILENAME
public static final String CLASSNAME
public static final String NODELAY
public static final String TIMEOUT
public static final String TIMEOUT_CONNECT
public static final String REQUEST
public static final String RE_USE_CONNECTION
public static final boolean RE_USE_CONNECTION_DEFAULT
public static final String CLOSE_CONNECTION
public static final boolean CLOSE_CONNECTION_DEFAULT
public static final String SO_LINGER
public static final String EOL_BYTE
public String getUsername()
public String getPassword()
public void setServer(String newServer)
public String getServer()
public boolean isReUseConnection()
public void setCloseConnection(String close)
public boolean isCloseConnection()
public void setSoLinger(String soLinger)
public int getSoLinger()
public void setEolByte(String eol)
public int getEolByte()
public void setPort(String newFilename)
public int getPort()
public void setFilename(String newFilename)
public String getFilename()
public void setRequestData(String newRequestData)
public String getRequestData()
public void setTimeout(String newTimeout)
public int getTimeout()
public void setConnectTimeout(String newTimeout)
public int getConnectTimeout()
public boolean getNoDelay()
public void setClassname(String classname)
public String getClassname()
public String getLabel()
public org.apache.jmeter.samplers.SampleResult sample(org.apache.jmeter.samplers.Entry e)
sample in interface org.apache.jmeter.samplers.Samplerpublic void threadStarted()
threadStarted in interface org.apache.jmeter.testelement.ThreadListenerpublic void threadFinished()
threadFinished in interface org.apache.jmeter.testelement.ThreadListenerpublic boolean applies(org.apache.jmeter.config.ConfigTestElement configElement)
applies in interface org.apache.jmeter.engine.util.ConfigMergabilityIndicatorapplies in class org.apache.jmeter.samplers.AbstractSamplerAbstractSampler.applies(org.apache.jmeter.config.ConfigTestElement)public boolean interrupt()
interrupt in interface org.apache.jmeter.samplers.InterruptibleCopyright © 1998-2022 Apache Software Foundation. All Rights Reserved.