org.apache.jmeter.protocol.ftp.sampler

Class FTPSampler

Implemented Interfaces:
Cloneable, Interruptible, Sampler, Serializable, TestElement

public class FTPSampler
extends AbstractSampler
implements Interruptible

A sampler which understands FTP file requests.

Field Summary

static String
BINARY_MODE
static String
INPUT_DATA
static String
LOCAL_FILENAME
static String
PORT
static String
REMOTE_FILENAME
static String
SAVE_RESPONSE
static String
SERVER
static String
UPLOAD_FILE

Fields inherited from interface org.apache.jmeter.testelement.TestElement

COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS

Constructor Summary

FTPSampler()

Method Summary

String
getLabel()
Returns a formatted string label describing this sampler Example output: ftp://ftp.nowhere.com/pub/README.txt
String
getLocalFilename()
String
getPassword()
String
getPort()
int
getPortAsInt()
String
getRemoteFilename()
String
getServer()
String
getUsername()
boolean
interrupt()
boolean
isBinaryMode()
boolean
isSaveResponse()
boolean
isUpload()
SampleResult
sample(Entry e)
Obtains statistics about the given Entry, and packages the information into a SampleResult.
void
setPort(String newPort)
void
setServer(String newServer)

Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, 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, traverseProperty

Field Details

BINARY_MODE

public static final String BINARY_MODE

INPUT_DATA

public static final String INPUT_DATA

LOCAL_FILENAME

public static final String LOCAL_FILENAME

PORT

public static final String PORT

REMOTE_FILENAME

public static final String REMOTE_FILENAME

SAVE_RESPONSE

public static final String SAVE_RESPONSE

SERVER

public static final String SERVER

UPLOAD_FILE

public static final String UPLOAD_FILE

Constructor Details

FTPSampler

public FTPSampler()

Method Details

getLabel

public String getLabel()
Returns a formatted string label describing this sampler Example output: ftp://ftp.nowhere.com/pub/README.txt
Returns:
a formatted string label describing this sampler

getLocalFilename

public String getLocalFilename()

getPassword

public String getPassword()

getPort

public String getPort()

getPortAsInt

public int getPortAsInt()

getRemoteFilename

public String getRemoteFilename()

getServer

public String getServer()

getUsername

public String getUsername()

interrupt

public boolean interrupt()
Specified by:
interrupt in interface Interruptible

isBinaryMode

public boolean isBinaryMode()

isSaveResponse

public boolean isSaveResponse()

isUpload

public boolean isUpload()

sample

public SampleResult sample(Entry e)
Obtains statistics about the given Entry, and packages the information into a SampleResult.
Specified by:
sample in interface Sampler

setPort

public void setPort(String newPort)

setServer

public void setServer(String newServer)

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.