|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.testelement.AbstractTestElement org.apache.jmeter.samplers.AbstractSampler org.apache.jmeter.protocol.tcp.sampler.TCPSampler
public class TCPSampler
A sampler which understands Tcp requests.
Field Summary | |
---|---|
static String |
CLASSNAME
|
static String |
FILENAME
|
static String |
NODELAY
|
static String |
PORT
|
static String |
RE_USE_CONNECTION
|
static String |
REQUEST
|
static String |
SERVER
|
static String |
TIMEOUT
|
static String |
TIMEOUT_CONNECT
|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
---|---|
TCPSampler()
|
Method Summary | |
---|---|
boolean |
applies(ConfigTestElement configElement)
Does configElement apply to Sampler |
String |
getClassname()
|
int |
getConnectTimeout()
|
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 |
getTimeout()
|
String |
getUsername()
|
boolean |
interrupt()
Interrupt the current operation if possible. |
boolean |
isReUseConnection()
|
SampleResult |
sample(Entry e)
Obtains statistics about the given Entry, and packages the information into a SampleResult. |
void |
setClassname(String classname)
|
void |
setConnectTimeout(String newTimeout)
|
void |
setFilename(String newFilename)
|
void |
setNoDelay(String newNoDelay)
|
void |
setPort(String newFilename)
|
void |
setRequestData(String newRequestData)
|
void |
setReUseConnection(String reuse)
|
void |
setServer(String newServer)
|
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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
---|
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, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse |
Field Detail |
---|
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
Constructor Detail |
---|
public TCPSampler()
Method Detail |
---|
public String getUsername()
public String getPassword()
public void setServer(String newServer)
public String getServer()
public void setReUseConnection(String reuse)
public boolean isReUseConnection()
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 void setNoDelay(String newNoDelay)
public boolean getNoDelay()
public void setClassname(String classname)
public String getClassname()
public String getLabel()
public SampleResult sample(Entry e)
Sampler
sample
in interface Sampler
public void threadStarted()
ThreadListener
threadStarted
in interface ThreadListener
JMeterThread.threadStarted()
public void threadFinished()
threadFinished
in interface ThreadListener
JMeterThread.threadFinished(LoopIterationListener)
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.
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |