public class RequestController extends Object implements org.jboss.msc.service.Service<RequestController>, ServerActivity
Modifier and Type | Field and Description |
---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME
Deprecated.
|
Constructor and Description |
---|
RequestController(boolean trackIndividualControlPoints) |
Modifier and Type | Method and Description |
---|---|
int |
getActiveRequestCount() |
ControlPoint |
getControlPoint(String deploymentName,
String entryPointName)
Gets an entry point for the given deployment.
|
int |
getMaxRequestCount() |
org.jboss.msc.value.InjectedValue<SuspendController> |
getShutdownControllerInjectedValue() |
RequestControllerState |
getState() |
RequestController |
getValue() |
boolean |
isPaused() |
void |
pauseControlPoint(String controlPoint,
ServerActivityCallback listener)
Pauses a given entry point.
|
void |
pauseDeployment(String deployment,
ServerActivityCallback listener)
Pauses a given deployment
|
void |
preSuspend(ServerActivityCallback listener)
Invoked before the server is paused.
|
void |
removeControlPoint(ControlPoint controlPoint)
Removes the specified entry point
|
void |
resume()
Unpause the server, allowing it to resume normal operations
|
void |
resumeControlPoint(String entryPoint)
Resumes a given entry point type;
|
void |
resumeDeployment(String deployment)
resumed a given deployment
|
void |
setMaxRequestCount(int maxRequestCount)
Sets the maximum number of requests that can be active at a time.
|
void |
start(org.jboss.msc.service.StartContext startContext) |
void |
stop(org.jboss.msc.service.StopContext stopContext) |
void |
suspended(ServerActivityCallback requestCountListener)
Pause the controller.
|
@Deprecated public static final org.jboss.msc.service.ServiceName SERVICE_NAME
public void preSuspend(ServerActivityCallback listener)
ServerActivity
preSuspend
in interface ServerActivity
listener
- The listener to invoker when the pre-pause phase is donepublic void suspended(ServerActivityCallback requestCountListener)
suspended
in interface ServerActivity
requestCountListener
- The listener that will be notified when all requests are donepublic void resume()
resume
in interface ServerActivity
public void pauseDeployment(String deployment, ServerActivityCallback listener)
deployment
- The deployment to pauselistener
- The listener that will be notified when the pause is completepublic void resumeDeployment(String deployment)
deployment
- The deployment to resumepublic void pauseControlPoint(String controlPoint, ServerActivityCallback listener)
controlPoint
- The control pointlistener
- The listenerpublic void resumeControlPoint(String entryPoint)
entryPoint
- The entry pointpublic RequestControllerState getState()
public ControlPoint getControlPoint(String deploymentName, String entryPointName)
removeControlPoint(ControlPoint)
must also be called n times to clean up the entry points.deploymentName
- The top level deployment nameentryPointName
- The entry point namepublic void removeControlPoint(ControlPoint controlPoint)
controlPoint
- The entry pointpublic int getMaxRequestCount()
public void setMaxRequestCount(int maxRequestCount)
maxRequestCount
- The max request countpublic boolean isPaused()
true
If the server is currently pausepublic void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<RequestController>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext stopContext)
stop
in interface org.jboss.msc.service.Service<RequestController>
public RequestController getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<RequestController>
IllegalStateException
IllegalArgumentException
public org.jboss.msc.value.InjectedValue<SuspendController> getShutdownControllerInjectedValue()
public int getActiveRequestCount()
Copyright © 2023 JBoss by Red Hat. All rights reserved.