public class StuckThreadDetectionValve extends ValveBase
| Constructor and Description |
|---|
StuckThreadDetectionValve() |
| Modifier and Type | Method and Description |
|---|---|
void |
backgroundProcess()
Execute a periodic task, such as reloading, etc.
|
void |
event(Request request,
Response response,
HttpEvent event)
Process a Comet event.
|
long[] |
getStuckThreadIds() |
int |
getThreshold() |
void |
invoke(Request request,
Response response)
The implementation-specific logic represented by this Valve.
|
void |
setThreshold(int threshold)
Specify the threshold (in seconds) used when checking for stuck threads.
|
createObjectName, getContainer, getContainerName, getController, getDomain, getInfo, getNext, getObjectName, getParentName, postDeregister, postRegister, preDeregister, preRegister, setContainer, setController, setNext, setObjectName, toStringpublic void setThreshold(int threshold)
threshold - The new threshold in secondspublic int getThreshold()
setThreshold(int)public void invoke(Request request, Response response) throws IOException, javax.servlet.ServletException
This method MUST be provided by a subclass.
invoke in interface Valveinvoke in class ValveBaserequest - The servlet request to be processedresponse - The servlet response to be createdIOException - if an input/output error occursjavax.servlet.ServletException - if a servlet error occurspublic void event(Request request, Response response, HttpEvent event) throws IOException, javax.servlet.ServletException
ValveBaseevent in interface Valveevent in class ValveBaserequest - The servlet request to be processedresponse - The servlet response to be processedevent - The event to be processedIOException - if an input/output error occurs, or is thrown
by a subsequently invoked Valve, Filter, or Servletjavax.servlet.ServletException - if a servlet error occurs, or is thrown
by a subsequently invoked Valve, Filter, or Servletpublic void backgroundProcess()
ValveBasebackgroundProcess in interface ValvebackgroundProcess in class ValveBasepublic long[] getStuckThreadIds()
Copyright © 2016 JBoss by Red Hat. All rights reserved.