Package org.jboss.modcluster.container
Interface ContainerEventHandler
- All Known Implementing Classes:
ModClusterService
public interface ContainerEventHandler
Defines the container events to which mod_cluster will respond. This API defines the integration point between mod_cluster
and the servlet container.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Indicates the deployment of a new web application which is not intending to start immediately.void
Triggers the initialization of mod_cluster.void
Indicates the undeployment of the specified context.void
shutdown()
Triggers the shutdown of mod_cluster.void
Indicates the specified web application context was started.void
Indicates the servlet container has been started.void
This is a periodic event that triggers a STATUS command containing newly calculated load factor.void
Indicates the specified web application context was stopped.void
Indicates the servlet container has been stopped.
-
Method Details
-
init
Triggers the initialization of mod_cluster. This event should be triggered only once, after the startup of the servlet container, but before triggering thestart(Server)
event.- Parameters:
server
- a server
-
shutdown
void shutdown()Triggers the shutdown of mod_cluster. Closes any resources created ininit(Server)
. -
add
Indicates the deployment of a new web application which is not intending to start immediately. This will issue a STOP-APP without session draining command on the proxies. In case the application will start usestart(Context)
.- Parameters:
context
- the added context
-
start
Indicates the specified web application context was started. This event triggers an ENABLE-APP command for the specified context.- Parameters:
context
- the started context
-
stop
Indicates the specified web application context was stopped. This event triggers a STOP-APP command for the context started bystart(Context)
.- Parameters:
context
- the stopped context
-
remove
Indicates the undeployment of the specified context. This event triggers a REMOVE-APP command for the specified context.- Parameters:
context
- the removed context
-
status
This is a periodic event that triggers a STATUS command containing newly calculated load factor. This event also processing of newly added/discovered proxies, and reset of any proxies in error.- Parameters:
engine
- the engine to be processed
-
start
Indicates the servlet container has been started. This event triggers the configuration of each servlet engine, and the addition of all web application contexts.- Parameters:
server
- the started server
-
stop
Indicates the servlet container has been stopped. This event triggers the removal of all web application contexts, and REMOVE-APP * of each engine.- Parameters:
server
- the stopped server
-