|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.config.ConfigTestElement
org.apache.jmeter.protocol.http.control.DNSCacheManager
public class DNSCacheManager
This config element provides ability to have flexible control over DNS
caching function. Depending on option from @see
DNSCachePanel, either system or
custom resolver can be used. Custom resolver uses dnsjava library, and gives
ability to bypass both OS and JVM cache. It allows to use paradigm
"1 virtual user - 1 DNS cache" in performance tests.
| Field Summary | |
|---|---|
static String |
CLEAR_CACHE_EACH_ITER
|
static boolean |
DEFAULT_CLEAR_CACHE_EACH_ITER
|
static boolean |
DEFAULT_IS_CUSTOM_RESOLVER
|
static String |
DEFAULT_SERVERS
|
static String |
IS_CUSTOM_RESOLVER
|
static String |
SERVERS
|
| Fields inherited from class org.apache.jmeter.config.ConfigTestElement |
|---|
PASSWORD, USERNAME |
| Fields inherited from interface org.apache.jmeter.testelement.TestElement |
|---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
| Constructor Summary | |
|---|---|
DNSCacheManager()
|
|
| Method Summary | |
|---|---|
void |
addServer(String dnsServer)
|
void |
clear()
Clear the TestElement of all data. |
Object |
clone()
|
CollectionProperty |
getServers()
|
boolean |
isClearEachIteration()
Clean DNS cache each iteration |
boolean |
isCustomResolver()
|
InetAddress[] |
resolve(String host)
Resolves address using system or custom DNS resolver |
void |
setClearEachIteration(boolean clear)
Clean DNS cache each iteration |
void |
setCustomResolver(boolean isCustomResolver)
|
void |
testIterationStart(LoopIterationEvent event)
Each time through a Thread Group's test script, an iteration event is fired for each thread. |
| Methods inherited from class org.apache.jmeter.config.ConfigTestElement |
|---|
addConfigElement, addTestElement, expectsModification |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CLEAR_CACHE_EACH_ITER
public static final String SERVERS
public static final String IS_CUSTOM_RESOLVER
public static final boolean DEFAULT_CLEAR_CACHE_EACH_ITER
public static final String DEFAULT_SERVERS
public static final boolean DEFAULT_IS_CUSTOM_RESOLVER
| Constructor Detail |
|---|
public DNSCacheManager()
| Method Detail |
|---|
public Object clone()
clone in interface ConfigElementclone in interface TestElementclone in class AbstractTestElement
public InetAddress[] resolve(String host)
throws UnknownHostException
resolve in interface org.apache.http.conn.DnsResolverUnknownHostExceptionpublic void testIterationStart(LoopIterationEvent event)
testIterationStart in interface TestIterationListenerpublic void clear()
clear in interface TestElementclear in class AbstractTestElementpublic void addServer(String dnsServer)
public CollectionProperty getServers()
public boolean isClearEachIteration()
public void setClearEachIteration(boolean clear)
public boolean isCustomResolver()
public void setCustomResolver(boolean isCustomResolver)
|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||