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, toString
public 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 Valve
invoke
in class ValveBase
request
- 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
ValveBase
event
in interface Valve
event
in class ValveBase
request
- 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()
ValveBase
backgroundProcess
in interface Valve
backgroundProcess
in class ValveBase
public long[] getStuckThreadIds()
Copyright © 2018 JBoss by Red Hat. All rights reserved.