Package org.jboss.modcluster.mcmp.impl
Class DefaultMCMPRequestFactory
- java.lang.Object
-
- org.jboss.modcluster.mcmp.impl.DefaultMCMPRequestFactory
-
- All Implemented Interfaces:
MCMPRequestFactory
public class DefaultMCMPRequestFactory extends Object implements MCMPRequestFactory
- Author:
- Paul Ferraro
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SESSION_COOKIE_NAMEstatic StringDEFAULT_SESSION_PARAMETER_NAME
-
Constructor Summary
Constructors Constructor Description DefaultMCMPRequestFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MCMPRequestcreateConfigRequest(Engine engine, NodeConfiguration nodeConfig, BalancerConfiguration balancerConfig)Creates a CONFIG MCMP request for the specified engine.MCMPRequestcreateDisableRequest(Context context)Creates an DISABLE-APP MCMP request for the specified context.MCMPRequestcreateDisableRequest(Engine engine)Creates an DISABLE-APP * MCMP request for the specified engine.MCMPRequestcreateDumpRequest()Creates an DUMP MCMP request.MCMPRequestcreateEnableRequest(Context context)Creates an ENABLE-APP MCMP request for the specified context.MCMPRequestcreateEnableRequest(Engine engine)Creates an ENABLE-APP * MCMP request for the specified engine.MCMPRequestcreateInfoRequest()Creates an INFO MCMP request.MCMPRequestcreatePingRequest()Creates an PING MCMP request.MCMPRequestcreatePingRequest(String jvmRoute)Creates an PING MCMP request for the node configured with the specified jvm route.MCMPRequestcreatePingRequest(String scheme, String host, int port)Creates an PING MCMP request for the node with a connector matching the specified protocol, host, and port.MCMPRequestcreateRemoveContextRequest(String jvmRoute, Set<String> aliases, String path)Create a REMOVE-APP request using the specified jvm route, aliases, and context path.MCMPRequestcreateRemoveEngineRequest(String jvmRoute)Create a REMOVE-APP * request using the specified jvm route.MCMPRequestcreateRemoveRequest(Context context)Creates an REMOVE-APP MCMP request for the specified context.MCMPRequestcreateRemoveRequest(Engine engine)Creates an REMOVE-APP * MCMP request for the specified engine.MCMPRequestcreateStatusRequest(String jvmRoute, int lbf)Creates an STATUS MCMP request using the specified jvmRoute and load balance factor.MCMPRequestcreateStopRequest(Context context)Creates an STOP-APP MCMP request for the specified context.MCMPRequestcreateStopRequest(Engine engine)Creates an STOP-APP * MCMP request for the specified engine.
-
-
-
Field Detail
-
DEFAULT_SESSION_COOKIE_NAME
public static final String DEFAULT_SESSION_COOKIE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SESSION_PARAMETER_NAME
public static final String DEFAULT_SESSION_PARAMETER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
createConfigRequest
public MCMPRequest createConfigRequest(Engine engine, NodeConfiguration nodeConfig, BalancerConfiguration balancerConfig)
Description copied from interface:MCMPRequestFactoryCreates a CONFIG MCMP request for the specified engine.- Specified by:
createConfigRequestin interfaceMCMPRequestFactory- Parameters:
engine- the servlet engine to be configurednodeConfig- the node configurationbalancerConfig- the balancer configuration- Returns:
- an MCMP request
-
createDisableRequest
public MCMPRequest createDisableRequest(Context context)
Description copied from interface:MCMPRequestFactoryCreates an DISABLE-APP MCMP request for the specified context.- Specified by:
createDisableRequestin interfaceMCMPRequestFactory- Parameters:
context- a web application context- Returns:
- an MCMP request
-
createDisableRequest
public MCMPRequest createDisableRequest(Engine engine)
Description copied from interface:MCMPRequestFactoryCreates an DISABLE-APP * MCMP request for the specified engine.- Specified by:
createDisableRequestin interfaceMCMPRequestFactory- Parameters:
engine- a servlet engine- Returns:
- an MCMP request
-
createEnableRequest
public MCMPRequest createEnableRequest(Context context)
Description copied from interface:MCMPRequestFactoryCreates an ENABLE-APP MCMP request for the specified context.- Specified by:
createEnableRequestin interfaceMCMPRequestFactory- Parameters:
context- a web application context- Returns:
- an MCMP request
-
createEnableRequest
public MCMPRequest createEnableRequest(Engine engine)
Description copied from interface:MCMPRequestFactoryCreates an ENABLE-APP * MCMP request for the specified engine.- Specified by:
createEnableRequestin interfaceMCMPRequestFactory- Parameters:
engine- a servlet engine- Returns:
- an MCMP request
-
createRemoveRequest
public MCMPRequest createRemoveRequest(Engine engine)
Description copied from interface:MCMPRequestFactoryCreates an REMOVE-APP * MCMP request for the specified engine.- Specified by:
createRemoveRequestin interfaceMCMPRequestFactory- Parameters:
engine- a servlet engine- Returns:
- an MCMP request
-
createRemoveRequest
public MCMPRequest createRemoveRequest(Context context)
Description copied from interface:MCMPRequestFactoryCreates an REMOVE-APP MCMP request for the specified context.- Specified by:
createRemoveRequestin interfaceMCMPRequestFactory- Parameters:
context- a web application context- Returns:
- an MCMP request
-
createStatusRequest
public MCMPRequest createStatusRequest(String jvmRoute, int lbf)
Description copied from interface:MCMPRequestFactoryCreates an STATUS MCMP request using the specified jvmRoute and load balance factor. Used to create a STATUS request for a remote node.- Specified by:
createStatusRequestin interfaceMCMPRequestFactory- Parameters:
jvmRoute- a configured jvm routelbf- a load factor- Returns:
- an MCMP request
-
createStopRequest
public MCMPRequest createStopRequest(Engine engine)
Description copied from interface:MCMPRequestFactoryCreates an STOP-APP * MCMP request for the specified engine.- Specified by:
createStopRequestin interfaceMCMPRequestFactory- Parameters:
engine- a servlet engine- Returns:
- an MCMP request
-
createStopRequest
public MCMPRequest createStopRequest(Context context)
Description copied from interface:MCMPRequestFactoryCreates an STOP-APP MCMP request for the specified context.- Specified by:
createStopRequestin interfaceMCMPRequestFactory- Parameters:
context- a web application context- Returns:
- an MCMP request
-
createDumpRequest
public MCMPRequest createDumpRequest()
Description copied from interface:MCMPRequestFactoryCreates an DUMP MCMP request.- Specified by:
createDumpRequestin interfaceMCMPRequestFactory- Returns:
- an MCMP request
-
createInfoRequest
public MCMPRequest createInfoRequest()
Description copied from interface:MCMPRequestFactoryCreates an INFO MCMP request.- Specified by:
createInfoRequestin interfaceMCMPRequestFactory- Returns:
- an MCMP request
-
createPingRequest
public MCMPRequest createPingRequest()
Description copied from interface:MCMPRequestFactoryCreates an PING MCMP request. This is used to ping a proxy,- Specified by:
createPingRequestin interfaceMCMPRequestFactory- Returns:
- an MCMP request
-
createPingRequest
public MCMPRequest createPingRequest(String jvmRoute)
Description copied from interface:MCMPRequestFactoryCreates 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:
createPingRequestin interfaceMCMPRequestFactory- Parameters:
jvmRoute- a jvm route of the target node- Returns:
- an MCMP request
-
createPingRequest
public MCMPRequest createPingRequest(String scheme, String host, int port)
Description copied from interface:MCMPRequestFactoryCreates 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:
createPingRequestin 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
public MCMPRequest createRemoveContextRequest(String jvmRoute, Set<String> aliases, String path)
Description copied from interface:MCMPRequestFactoryCreate a REMOVE-APP request using the specified jvm route, aliases, and context path. Used to create REMOVE-APP requests for remote nodes.- Specified by:
createRemoveContextRequestin interfaceMCMPRequestFactory- Parameters:
jvmRoute- a jvm routealiases- a set of host aliasespath- the context path- Returns:
- an MCMP request
-
createRemoveEngineRequest
public MCMPRequest createRemoveEngineRequest(String jvmRoute)
Description copied from interface:MCMPRequestFactoryCreate a REMOVE-APP * request using the specified jvm route. Used to create REMOVE-APP * requests for remote nodes.- Specified by:
createRemoveEngineRequestin interfaceMCMPRequestFactory- Parameters:
jvmRoute- a jvm route- Returns:
- an MCMP request
-
-