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() |
MCMPRequest |
createPingRequest(String jvmRoute) |
MCMPRequest |
createPingRequest(String scheme,
String host,
int 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) |
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) |
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)
createConfigRequest
in interface MCMPRequestFactory
engine
- the servlet engine to be configurednodeConfig
- the node configurationbalancerConfig
- the balancer configurationorg.jboss.modcluster.mcmp.MCMPRequestFactory#createConfigRequest(org.jboss.modcluster.Engine,
org.jboss.modcluster.config.NodeConfiguration, org.jboss.modcluster.config.BalancerConfiguration)
public MCMPRequest createDisableRequest(Context context)
createDisableRequest
in interface MCMPRequestFactory
context
- a web application contextorg.jboss.modcluster.mcmp.MCMPRequestFactory#createDisableRequest(org.jboss.modcluster.Context)
public MCMPRequest createDisableRequest(Engine engine)
createDisableRequest
in interface MCMPRequestFactory
engine
- a servlet engineorg.jboss.modcluster.mcmp.MCMPRequestFactory#createDisableRequest(org.jboss.modcluster.Engine)
public MCMPRequest createEnableRequest(Context context)
createEnableRequest
in interface MCMPRequestFactory
context
- a web application contextorg.jboss.modcluster.mcmp.MCMPRequestFactory#createEnableRequest(org.jboss.modcluster.Context)
public MCMPRequest createEnableRequest(Engine engine)
createEnableRequest
in interface MCMPRequestFactory
engine
- a servlet engineorg.jboss.modcluster.mcmp.MCMPRequestFactory#createEnableRequest(org.jboss.modcluster.Engine)
public MCMPRequest createRemoveRequest(Engine engine)
createRemoveRequest
in interface MCMPRequestFactory
engine
- a servlet engineorg.jboss.modcluster.mcmp.MCMPRequestFactory#createRemoveRequest(org.jboss.modcluster.Engine)
public MCMPRequest createRemoveRequest(Context context)
createRemoveRequest
in interface MCMPRequestFactory
context
- a web application contextorg.jboss.modcluster.mcmp.MCMPRequestFactory#createRemoveRequest(org.jboss.modcluster.Context)
public MCMPRequest createStatusRequest(String jvmRoute, int lbf)
MCMPRequestFactory
createStatusRequest
in interface MCMPRequestFactory
jvmRoute
- a configured jvm routelbf
- a load factorMCMPRequestFactory.createStatusRequest(java.lang.String, int)
public MCMPRequest createStopRequest(Engine engine)
createStopRequest
in interface MCMPRequestFactory
engine
- a servlet engineorg.jboss.modcluster.mcmp.MCMPRequestFactory#createStopRequest(org.jboss.modcluster.Engine)
public MCMPRequest createStopRequest(Context context)
createStopRequest
in interface MCMPRequestFactory
context
- a web application contextorg.jboss.modcluster.mcmp.MCMPRequestFactory#createStopRequest(org.jboss.modcluster.Context)
public MCMPRequest createDumpRequest()
MCMPRequestFactory
createDumpRequest
in interface MCMPRequestFactory
MCMPRequestFactory.createDumpRequest()
public MCMPRequest createInfoRequest()
MCMPRequestFactory
createInfoRequest
in interface MCMPRequestFactory
MCMPRequestFactory.createInfoRequest()
public MCMPRequest createPingRequest()
createPingRequest
in interface MCMPRequestFactory
MCMPRequestFactory.createPingRequest()
public MCMPRequest createPingRequest(String jvmRoute)
createPingRequest
in interface MCMPRequestFactory
jvmRoute
- a jvm route of the target nodeMCMPRequestFactory.createPingRequest(java.lang.String)
public MCMPRequest createPingRequest(String scheme, String host, int port)
createPingRequest
in interface MCMPRequestFactory
MCMPRequestFactory.createPingRequest(java.lang.String, java.lang.String, int)
public 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 pathMCMPRequestFactory.createRemoveContextRequest(java.lang.String, java.util.Set,
java.lang.String)
public MCMPRequest createRemoveEngineRequest(String jvmRoute)
createRemoveEngineRequest
in interface MCMPRequestFactory
jvmRoute
- a jvm routeMCMPRequestFactory.createRemoveEngineRequest(java.lang.String)
Copyright © 2017 JBoss by Red Hat. All rights reserved.