Package org.jboss.modcluster.mcmp.impl
Class DefaultMCMPRequestFactory
java.lang.Object
org.jboss.modcluster.mcmp.impl.DefaultMCMPRequestFactory
- All Implemented Interfaces:
MCMPRequestFactory
- Author:
- Paul Ferraro
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateConfigRequest
(Engine engine, NodeConfiguration nodeConfig, BalancerConfiguration balancerConfig) Creates a CONFIG MCMP request for the specified engine.createDisableRequest
(Context context) Creates an DISABLE-APP MCMP request for the specified context.createDisableRequest
(Engine engine) Creates an DISABLE-APP * MCMP request for the specified engine.Creates an DUMP MCMP request.createEnableRequest
(Context context) Creates an ENABLE-APP MCMP request for the specified context.createEnableRequest
(Engine engine) Creates an ENABLE-APP * MCMP request for the specified engine.Creates an INFO MCMP request.Creates an PING MCMP request.createPingRequest
(String jvmRoute) Creates an PING MCMP request for the node configured with the specified jvm route.createPingRequest
(String scheme, String host, int port) Creates an PING MCMP request for the node with a connector matching the specified protocol, host, and port.createRemoveContextRequest
(String jvmRoute, Set<String> aliases, String path) Create a REMOVE-APP request using the specified jvm route, aliases, and context path.createRemoveEngineRequest
(String jvmRoute) Create a REMOVE-APP * request using the specified jvm route.createRemoveRequest
(Context context) Creates an REMOVE-APP MCMP request for the specified context.createRemoveRequest
(Engine engine) Creates an REMOVE-APP * MCMP request for the specified engine.createStatusRequest
(String jvmRoute, int lbf) Creates an STATUS MCMP request using the specified jvmRoute and load balance factor.createStopRequest
(Context context) Creates an STOP-APP MCMP request for the specified context.createStopRequest
(Engine engine) Creates an STOP-APP * MCMP request for the specified engine.
-
Field Details
-
DEFAULT_SESSION_COOKIE_NAME
- See Also:
-
DEFAULT_SESSION_PARAMETER_NAME
- See Also:
-
-
Constructor Details
-
DefaultMCMPRequestFactory
public DefaultMCMPRequestFactory()
-
-
Method Details
-
createConfigRequest
public MCMPRequest createConfigRequest(Engine engine, NodeConfiguration nodeConfig, BalancerConfiguration balancerConfig) Description copied from interface:MCMPRequestFactory
Creates a CONFIG MCMP request for the specified engine.- Specified by:
createConfigRequest
in interfaceMCMPRequestFactory
- Parameters:
engine
- the servlet engine to be configurednodeConfig
- the node configurationbalancerConfig
- the balancer configuration- Returns:
- an MCMP request
-
createDisableRequest
Description copied from interface:MCMPRequestFactory
Creates an DISABLE-APP MCMP request for the specified context.- Specified by:
createDisableRequest
in interfaceMCMPRequestFactory
- Parameters:
context
- a web application context- Returns:
- an MCMP request
-
createDisableRequest
Description copied from interface:MCMPRequestFactory
Creates an DISABLE-APP * MCMP request for the specified engine.- Specified by:
createDisableRequest
in interfaceMCMPRequestFactory
- Parameters:
engine
- a servlet engine- Returns:
- an MCMP request
-
createEnableRequest
Description copied from interface:MCMPRequestFactory
Creates an ENABLE-APP MCMP request for the specified context.- Specified by:
createEnableRequest
in interfaceMCMPRequestFactory
- Parameters:
context
- a web application context- Returns:
- an MCMP request
-
createEnableRequest
Description copied from interface:MCMPRequestFactory
Creates an ENABLE-APP * MCMP request for the specified engine.- Specified by:
createEnableRequest
in interfaceMCMPRequestFactory
- Parameters:
engine
- a servlet engine- Returns:
- an MCMP request
-
createRemoveRequest
Description copied from interface:MCMPRequestFactory
Creates an REMOVE-APP * MCMP request for the specified engine.- Specified by:
createRemoveRequest
in interfaceMCMPRequestFactory
- Parameters:
engine
- a servlet engine- Returns:
- an MCMP request
-
createRemoveRequest
Description copied from interface:MCMPRequestFactory
Creates an REMOVE-APP MCMP request for the specified context.- Specified by:
createRemoveRequest
in interfaceMCMPRequestFactory
- Parameters:
context
- a web application context- Returns:
- an MCMP request
-
createStatusRequest
Description copied from interface:MCMPRequestFactory
Creates an STATUS MCMP request using the specified jvmRoute and load balance factor. Used to create a STATUS request for a remote node.- Specified by:
createStatusRequest
in interfaceMCMPRequestFactory
- Parameters:
jvmRoute
- a configured jvm routelbf
- a load factor- Returns:
- an MCMP request
-
createStopRequest
Description copied from interface:MCMPRequestFactory
Creates an STOP-APP * MCMP request for the specified engine.- Specified by:
createStopRequest
in interfaceMCMPRequestFactory
- Parameters:
engine
- a servlet engine- Returns:
- an MCMP request
-
createStopRequest
Description copied from interface:MCMPRequestFactory
Creates an STOP-APP MCMP request for the specified context.- Specified by:
createStopRequest
in interfaceMCMPRequestFactory
- Parameters:
context
- a web application context- Returns:
- an MCMP request
-
createDumpRequest
Description copied from interface:MCMPRequestFactory
Creates an DUMP MCMP request.- Specified by:
createDumpRequest
in interfaceMCMPRequestFactory
- Returns:
- an MCMP request
-
createInfoRequest
Description copied from interface:MCMPRequestFactory
Creates an INFO MCMP request.- Specified by:
createInfoRequest
in interfaceMCMPRequestFactory
- Returns:
- an MCMP request
-
createPingRequest
Description copied from interface:MCMPRequestFactory
Creates an PING MCMP request. This is used to ping a proxy,- Specified by:
createPingRequest
in interfaceMCMPRequestFactory
- Returns:
- an MCMP request
-
createPingRequest
Description copied from interface:MCMPRequestFactory
Creates an PING MCMP request for the node configured with the specified jvm route. This is used to ping a configured node from a proxy.- Specified by:
createPingRequest
in interfaceMCMPRequestFactory
- Parameters:
jvmRoute
- a jvm route of the target node- Returns:
- an MCMP request
-
createPingRequest
Description copied from interface:MCMPRequestFactory
Creates an PING MCMP request for the node with a connector matching the specified protocol, host, and port. This is used to ping an unconfigured node from a proxy.- Specified by:
createPingRequest
in interfaceMCMPRequestFactory
- Parameters:
scheme
- specifies the protocol of the connector on the target nodehost
- specifies the host of the connector on the target nodeport
- specifies the port of the connector on the target node- Returns:
- an MCMP request
-
createRemoveContextRequest
Description copied from interface:MCMPRequestFactory
Create a REMOVE-APP request using the specified jvm route, aliases, and context path. Used to create REMOVE-APP requests for remote nodes.- Specified by:
createRemoveContextRequest
in interfaceMCMPRequestFactory
- Parameters:
jvmRoute
- a jvm routealiases
- a set of host aliasespath
- the context path- Returns:
- an MCMP request
-
createRemoveEngineRequest
Description copied from interface:MCMPRequestFactory
Create a REMOVE-APP * request using the specified jvm route. Used to create REMOVE-APP * requests for remote nodes.- Specified by:
createRemoveEngineRequest
in interfaceMCMPRequestFactory
- Parameters:
jvmRoute
- a jvm route- Returns:
- an MCMP request
-