kg.apc.jmeter.samplers
Class AbstractIPSampler

java.lang.Object
  extended by org.apache.jmeter.testelement.AbstractTestElement
      extended by org.apache.jmeter.samplers.AbstractSampler
          extended by kg.apc.jmeter.samplers.AbstractIPSampler
All Implemented Interfaces:
Serializable, Cloneable, org.apache.jmeter.engine.util.ConfigMergabilityIndicator, org.apache.jmeter.gui.Searchable, org.apache.jmeter.samplers.Interruptible, org.apache.jmeter.samplers.Sampler, org.apache.jmeter.testelement.TestElement
Direct Known Subclasses:
HTTPRawSampler, UDPSampler

public abstract class AbstractIPSampler
extends org.apache.jmeter.samplers.AbstractSampler
implements Serializable, Cloneable, org.apache.jmeter.samplers.Interruptible

Author:
undera
See Also:
Serialized Form

Field Summary
static String CRLF
           
static String DATA
           
static String EMPTY
           
static String HOSTNAME
           
static String PORT
           
static String RC200
           
static String RC500
           
static String RECV_BUFFER_LEN_PROPERTY
           
protected static int recvBufSize
           
protected  int recvDataLimit
           
static String RESULT_DATA_LIMIT
           
static String TIMEOUT
           
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
AbstractIPSampler()
           
 
Method Summary
protected abstract  AbstractSelectableChannel getChannel()
           
 String getHostName()
           
 String getPort()
           
protected  int getPortAsInt()
           
 ByteBuffer getRecvBuf()
           
 String getRequestData()
           
 String getTimeout()
           
protected  int getTimeoutAsInt()
           
protected abstract  byte[] processIO(org.apache.jmeter.samplers.SampleResult res)
           
 org.apache.jmeter.samplers.SampleResult sample(org.apache.jmeter.samplers.Entry entry)
           
 void setHostName(String text)
           
 void setPort(String text)
           
 void setRequestData(String text)
           
 void setTimeout(String text)
           
 
Methods inherited from class org.apache.jmeter.samplers.AbstractSampler
applies
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jmeter.samplers.Interruptible
interrupt
 
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, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
 

Field Detail

RECV_BUFFER_LEN_PROPERTY

public static final String RECV_BUFFER_LEN_PROPERTY
See Also:
Constant Field Values

RESULT_DATA_LIMIT

public static final String RESULT_DATA_LIMIT
See Also:
Constant Field Values

HOSTNAME

public static final String HOSTNAME
See Also:
Constant Field Values

PORT

public static final String PORT
See Also:
Constant Field Values

TIMEOUT

public static final String TIMEOUT
See Also:
Constant Field Values

DATA

public static final String DATA
See Also:
Constant Field Values

CRLF

public static final String CRLF
See Also:
Constant Field Values

EMPTY

public static final String EMPTY
See Also:
Constant Field Values

RC200

public static final String RC200
See Also:
Constant Field Values

RC500

public static final String RC500
See Also:
Constant Field Values

recvBufSize

protected static final int recvBufSize

recvDataLimit

protected final int recvDataLimit
Constructor Detail

AbstractIPSampler

public AbstractIPSampler()
Method Detail

getRecvBuf

public ByteBuffer getRecvBuf()

getHostName

public final String getHostName()

getPort

public String getPort()

getRequestData

public String getRequestData()

getTimeout

public String getTimeout()

setHostName

public void setHostName(String text)

setPort

public void setPort(String text)

setRequestData

public void setRequestData(String text)

setTimeout

public void setTimeout(String text)

getPortAsInt

protected int getPortAsInt()

getTimeoutAsInt

protected int getTimeoutAsInt()

sample

public org.apache.jmeter.samplers.SampleResult sample(org.apache.jmeter.samplers.Entry entry)
Specified by:
sample in interface org.apache.jmeter.samplers.Sampler

getChannel

protected abstract AbstractSelectableChannel getChannel()
                                                 throws IOException
Throws:
IOException

processIO

protected abstract byte[] processIO(org.apache.jmeter.samplers.SampleResult res)
                             throws Exception
Throws:
Exception


Copyright © 2014. All Rights Reserved.