public class TCPSampler extends AbstractSampler implements ThreadListener, 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 |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
TCPSampler() |
Modifier and Type | Method and Description |
---|---|
boolean |
applies(ConfigTestElement configElement)
Does configElement apply to Sampler
|
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()
Interrupt the current operation if possible.
|
boolean |
isCloseConnection() |
boolean |
isReUseConnection() |
SampleResult |
sample(Entry e)
Obtains statistics about the given Entry, and packages the information
into a SampleResult.
|
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()
Called for each thread after all samples have been processed.
|
void |
threadStarted()
Called for each thread before starting sampling.
|
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, traverseProperty
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addTestElement, 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, traverse
public 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 SampleResult sample(Entry e)
Sampler
public void threadStarted()
ThreadListener
threadStarted
in interface ThreadListener
public void threadFinished()
threadFinished
in interface ThreadListener
public boolean applies(ConfigTestElement configElement)
AbstractSampler
applies
in interface ConfigMergabilityIndicator
applies
in class AbstractSampler
configElement
- ConfigTestElement
AbstractSampler.applies(org.apache.jmeter.config.ConfigTestElement)
public boolean interrupt()
Interruptible
interrupt
in interface Interruptible
true
if there was an operation to interrupt.Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.