public static class JettySolrRunner.DebugFilter extends Object implements javax.servlet.Filter
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
Constructor and Description |
---|
DebugFilter() |
Modifier and Type | Method and Description |
---|---|
void |
addDelay(String reason,
int count,
int delay)
Introduce a delay of specified milliseconds for the specified request.
|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain) |
long |
getTotalRequests() |
void |
init(javax.servlet.FilterConfig filterConfig) |
void |
unsetDelay()
Remove any delay introduced before.
|
public long getTotalRequests()
public void addDelay(String reason, int count, int delay)
reason
- Info message logged when delay occurscount
- The count-th request will experience a delaydelay
- There will be a delay of this many millisecondspublic void unsetDelay()
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.