public class DefaultMCMPRequestFactory extends Object implements MCMPRequestFactory
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SESSION_COOKIE_NAME |
static String |
DEFAULT_SESSION_PARAMETER_NAME |
Constructor and Description |
---|
DefaultMCMPRequestFactory() |
Modifier and Type | Method and Description |
---|---|
MCMPRequest |
createConfigRequest(Engine engine,
NodeConfiguration nodeConfig,
BalancerConfiguration balancerConfig)
Creates a CONFIG MCMP request for the specified engine.
|
MCMPRequest |
createDisableRequest(Context context)
Creates an DISABLE-APP MCMP request for the specified context.
|
MCMPRequest |
createDisableRequest(Engine engine)
Creates an DISABLE-APP * MCMP request for the specified engine.
|
MCMPRequest |
createDumpRequest()
Creates an DUMP MCMP request.
|
MCMPRequest |
createEnableRequest(Context context)
Creates an ENABLE-APP MCMP request for the specified context.
|
MCMPRequest |
createEnableRequest(Engine engine)
Creates an ENABLE-APP * MCMP request for the specified engine.
|
MCMPRequest |
createInfoRequest()
Creates an INFO MCMP request.
|
MCMPRequest |
createPingRequest()
Creates an PING MCMP request.
|
MCMPRequest |
createPingRequest(String jvmRoute)
Creates an PING MCMP request for the node configured with the specified jvm route.
|
MCMPRequest |
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.
|
MCMPRequest |
createRemoveContextRequest(String jvmRoute,
Set<String> aliases,
String path)
Create a REMOVE-APP request using the specified jvm route, aliases, and context path.
|
MCMPRequest |
createRemoveEngineRequest(String jvmRoute)
Create a REMOVE-APP * request using the specified jvm route.
|
MCMPRequest |
createRemoveRequest(Context context)
Creates an REMOVE-APP MCMP request for the specified context.
|
MCMPRequest |
createRemoveRequest(Engine engine)
Creates an REMOVE-APP * MCMP request for the specified engine.
|
MCMPRequest |
createStatusRequest(String jvmRoute,
int lbf)
Creates an STATUS MCMP request using the specified jvmRoute and load balance factor.
|
MCMPRequest |
createStopRequest(Context context)
Creates an STOP-APP MCMP request for the specified context.
|
MCMPRequest |
createStopRequest(Engine engine)
Creates an STOP-APP * MCMP request for the specified engine.
|
public static final String DEFAULT_SESSION_COOKIE_NAME
public static final String DEFAULT_SESSION_PARAMETER_NAME
public MCMPRequest createConfigRequest(Engine engine, NodeConfiguration nodeConfig, BalancerConfiguration balancerConfig)
MCMPRequestFactory
createConfigRequest
in interface MCMPRequestFactory
engine
- the servlet engine to be configurednodeConfig
- the node configurationbalancerConfig
- the balancer configurationpublic MCMPRequest createDisableRequest(Context context)
MCMPRequestFactory
createDisableRequest
in interface MCMPRequestFactory
context
- a web application contextpublic MCMPRequest createDisableRequest(Engine engine)
MCMPRequestFactory
createDisableRequest
in interface MCMPRequestFactory
engine
- a servlet enginepublic MCMPRequest createEnableRequest(Context context)
MCMPRequestFactory
createEnableRequest
in interface MCMPRequestFactory
context
- a web application contextpublic MCMPRequest createEnableRequest(Engine engine)
MCMPRequestFactory
createEnableRequest
in interface MCMPRequestFactory
engine
- a servlet enginepublic MCMPRequest createRemoveRequest(Engine engine)
MCMPRequestFactory
createRemoveRequest
in interface MCMPRequestFactory
engine
- a servlet enginepublic MCMPRequest createRemoveRequest(Context context)
MCMPRequestFactory
createRemoveRequest
in interface MCMPRequestFactory
context
- a web application contextpublic MCMPRequest createStatusRequest(String jvmRoute, int lbf)
MCMPRequestFactory
createStatusRequest
in interface MCMPRequestFactory
jvmRoute
- a configured jvm routelbf
- a load factorpublic MCMPRequest createStopRequest(Engine engine)
MCMPRequestFactory
createStopRequest
in interface MCMPRequestFactory
engine
- a servlet enginepublic MCMPRequest createStopRequest(Context context)
MCMPRequestFactory
createStopRequest
in interface MCMPRequestFactory
context
- a web application contextpublic MCMPRequest createDumpRequest()
MCMPRequestFactory
createDumpRequest
in interface MCMPRequestFactory
public MCMPRequest createInfoRequest()
MCMPRequestFactory
createInfoRequest
in interface MCMPRequestFactory
public MCMPRequest createPingRequest()
MCMPRequestFactory
createPingRequest
in interface MCMPRequestFactory
public MCMPRequest createPingRequest(String jvmRoute)
MCMPRequestFactory
createPingRequest
in interface MCMPRequestFactory
jvmRoute
- a jvm route of the target nodepublic MCMPRequest createPingRequest(String scheme, String host, int port)
MCMPRequestFactory
createPingRequest
in interface MCMPRequestFactory
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 nodepublic MCMPRequest createRemoveContextRequest(String jvmRoute, Set<String> aliases, String path)
MCMPRequestFactory
createRemoveContextRequest
in interface MCMPRequestFactory
jvmRoute
- a jvm routealiases
- a set of host aliasespath
- the context pathpublic MCMPRequest createRemoveEngineRequest(String jvmRoute)
MCMPRequestFactory
createRemoveEngineRequest
in interface MCMPRequestFactory
jvmRoute
- a jvm routeCopyright © 2023 JBoss by Red Hat. All rights reserved.