Class HttpMirrorControl
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.protocol.http.control.HttpMirrorControl
- All Implemented Interfaces:
Serializable
,Cloneable
,Searchable
,TestElement
Test element that implements the Workbench HTTP Mirror function
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final String
static final String
static final String
static final String
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Called by Remove to determine if it is safe to remove the element.int
int
getPort()
boolean
void
setMaxPoolSize
(String maxPoolSize) void
setMaxQueueSize
(String maxQueueSize) void
setPort
(int port) void
void
void
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, 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
-
Field Details
-
DEFAULT_PORT_S
-
PORT
- See Also:
-
MAX_POOL_SIZE
- See Also:
-
MAX_QUEUE_SIZE
- See Also:
-
DEFAULT_MAX_POOL_SIZE
public static final int DEFAULT_MAX_POOL_SIZE- See Also:
-
DEFAULT_MAX_QUEUE_SIZE
public static final int DEFAULT_MAX_QUEUE_SIZE- See Also:
-
-
Constructor Details
-
HttpMirrorControl
public HttpMirrorControl() -
HttpMirrorControl
public HttpMirrorControl(int port)
-
-
Method Details
-
setPort
public void setPort(int port) -
setPort
-
getPort
public int getPort() -
getPortString
-
getMaxPoolSizeAsString
- Returns:
- Max Thread Pool size
-
setMaxPoolSize
- Parameters:
maxPoolSize
- Max Thread Pool size
-
getMaxQueueSizeAsString
- Returns:
- Max Queue size
-
setMaxQueueSize
- Parameters:
maxQueueSize
- Max Queue size
-
getDefaultPort
public int getDefaultPort() -
startHttpMirror
public void startHttpMirror() -
stopHttpMirror
public void stopHttpMirror() -
canRemove
public boolean canRemove()Description copied from class:AbstractTestElement
Called by Remove to determine if it is safe to remove the element. The element can either clean itself up, and return true, or the element can return false.- Specified by:
canRemove
in interfaceTestElement
- Overrides:
canRemove
in classAbstractTestElement
- Returns:
- true if safe to remove the element
-
isServerAlive
public boolean isServerAlive()
-