public class TCPSampler extends AbstractSampler implements ThreadListener
| Modifier and Type | Field and Description |
|---|---|
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 |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS| Constructor and Description |
|---|
TCPSampler() |
| Modifier and Type | Method and Description |
|---|---|
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 |
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.
|
addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, 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, removeProperty, setComment, setName, 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 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)
Samplerpublic void threadStarted()
ThreadListenerthreadStarted in interface ThreadListenerJMeterThread.threadStarted()public void threadFinished()
ThreadListenerthreadFinished in interface ThreadListenerJMeterThread.threadFinished(LoopIterationListener)Copyright © 1998-2012 Apache Software Foundation. All Rights Reserved.