public class TCPSampler extends AbstractSampler implements ThreadListener, Interruptible
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME |
static java.lang.String |
CLOSE_CONNECTION |
static boolean |
CLOSE_CONNECTION_DEFAULT |
static java.lang.String |
EOL_BYTE |
static java.lang.String |
FILENAME |
static java.lang.String |
NODELAY |
static java.lang.String |
PORT |
static java.lang.String |
RE_USE_CONNECTION |
static boolean |
RE_USE_CONNECTION_DEFAULT |
static java.lang.String |
REQUEST |
static java.lang.String |
SERVER |
static java.lang.String |
SO_LINGER |
static java.lang.String |
TIMEOUT |
static java.lang.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
|
java.lang.String |
getClassname() |
int |
getConnectTimeout() |
int |
getEolByte() |
java.lang.String |
getFilename() |
java.lang.String |
getLabel()
Returns a formatted string label describing this sampler Example output:
Tcp://Tcp.nowhere.com/pub/README.txt
|
boolean |
getNoDelay() |
java.lang.String |
getPassword() |
int |
getPort() |
java.lang.String |
getRequestData() |
java.lang.String |
getServer() |
int |
getSoLinger() |
int |
getTimeout() |
java.lang.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(java.lang.String classname) |
void |
setCloseConnection(java.lang.String close) |
void |
setConnectTimeout(java.lang.String newTimeout) |
void |
setEolByte(java.lang.String eol) |
void |
setFilename(java.lang.String newFilename) |
void |
setPort(java.lang.String newFilename) |
void |
setRequestData(java.lang.String newRequestData) |
void |
setServer(java.lang.String newServer) |
void |
setSoLinger(java.lang.String soLinger) |
void |
setTimeout(java.lang.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 java.lang.String SERVER
public static final java.lang.String PORT
public static final java.lang.String FILENAME
public static final java.lang.String CLASSNAME
public static final java.lang.String NODELAY
public static final java.lang.String TIMEOUT
public static final java.lang.String TIMEOUT_CONNECT
public static final java.lang.String REQUEST
public static final java.lang.String RE_USE_CONNECTION
public static final boolean RE_USE_CONNECTION_DEFAULT
public static final java.lang.String CLOSE_CONNECTION
public static final boolean CLOSE_CONNECTION_DEFAULT
public static final java.lang.String SO_LINGER
public static final java.lang.String EOL_BYTE
public java.lang.String getUsername()
public java.lang.String getPassword()
public void setServer(java.lang.String newServer)
public java.lang.String getServer()
public boolean isReUseConnection()
public void setCloseConnection(java.lang.String close)
public boolean isCloseConnection()
public void setSoLinger(java.lang.String soLinger)
public int getSoLinger()
public void setEolByte(java.lang.String eol)
public int getEolByte()
public void setPort(java.lang.String newFilename)
public int getPort()
public void setFilename(java.lang.String newFilename)
public java.lang.String getFilename()
public void setRequestData(java.lang.String newRequestData)
public java.lang.String getRequestData()
public void setTimeout(java.lang.String newTimeout)
public int getTimeout()
public void setConnectTimeout(java.lang.String newTimeout)
public int getConnectTimeout()
public boolean getNoDelay()
public void setClassname(java.lang.String classname)
public java.lang.String getClassname()
public java.lang.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.