Package org.jboss.modcluster.container
Interface Engine
- All Known Implementing Classes:
TomcatEngine
public interface Engine
SPI for an engine, defined as collection of one or more hosts associated with a collection of
Connector
s. The only Connector
of significance is the one used to communicate with a proxy.- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionReturns the host identified by the specified host name.Iteration of all connectors associated with this engine that can be used to communicate with its proxies.Returns the default host of this engine.getHosts()
The hosts associated with this engine.The jvm route of this servlet engine.getName()
The name of this engine.The connector which this engine uses to communicate with its proxies.The server to which this engine is associated.Returns the cookie name used for sessions.Returns the url parameter name used for sessions.void
setJvmRoute
(String jvmRoute) Set this jvm route for this servlet engine.
-
Method Details
-
getName
String getName()The name of this engine.- Returns:
- the engine name
-
getServer
Server getServer()The server to which this engine is associated.- Returns:
- a server
-
getHosts
The hosts associated with this engine.- Returns:
- the engine's hosts
-
getProxyConnector
Connector getProxyConnector()The connector which this engine uses to communicate with its proxies.- Returns:
- the connector used by mod_cluster
-
getConnectors
Iteration of all connectors associated with this engine that can be used to communicate with its proxies.- Returns:
- iteration of all connectors associated with this engine
-
getJvmRoute
String getJvmRoute()The jvm route of this servlet engine. This uniquely identifies this node within the proxy.- Returns:
- the servlet engine's jvm route
-
setJvmRoute
Set this jvm route for this servlet engine. Used to create a reasonable default value, if no explicit route is defined.- Parameters:
jvmRoute
- a unique jvm route
-
findHost
Returns the host identified by the specified host name.- Parameters:
name
- the host name- Returns:
- a servlet engine host
-
getSessionCookieName
String getSessionCookieName()Returns the cookie name used for sessions.- Returns:
- a cookie name
-
getSessionParameterName
String getSessionParameterName()Returns the url parameter name used for sessions.- Returns:
- a parameter name
-
getDefaultHost
String getDefaultHost()Returns the default host of this engine.- Returns:
- the default host
-