| com.caucho.server.deploy.DeployControllerStrategy
All known Subclasses: com.caucho.server.deploy.AbstractDeployControllerStrategy,
DeployControllerStrategy | public interface DeployControllerStrategy (Code) | | DeployController controls the lifecycle of the DeployInstance.
States
- active - responds to requests normally
- modified - active with a dependency change like a web.xml
- active-idle - active idle state, which can be stopped on timeout
- active-error - configuration error (before timeout)
- error - configuration error (after timeout)
- stop - admin stop, refuses requests with a 503
- stop-lazy - lazy stop
error-wait is equivalent to the active state. idle and inactive only
applies to startup=lazy.
events
- startOnInit - called at startup time for automatic start
- start - admin start
- stop - admin stop
- update - admin update/restart, ends up in initial state
- request - top-level request
- subrequest - include/forward
- alarm - timeout
-
|
alarm | public void alarm(DeployController<I> controller)(Code) | | On a timeout, update or restart as necessary.
Parameters: controller - the owning controller |
request | public I request(DeployController<I> controller)(Code) | | On a top-level request, returns the deploy instance, starting if necessary.
Parameters: controller - the owning controller the active deploy instance or null if none are active |
start | public void start(DeployController<I> controller)(Code) | | Starts the instance from an admin command.
Parameters: controller - the owning controller |
startOnInit | public void startOnInit(DeployController<I> controller)(Code) | | Called at initialization time for automatic start.
Parameters: controller - the owning controller |
stop | public void stop(DeployController<I> controller)(Code) | | Stops the instance from an admin command.
Parameters: controller - the owning controller |
subrequest | public I subrequest(DeployController<I> controller)(Code) | | On a sub-request, returns the deploy instance, starting if necessary.
Parameters: controller - the owning controller the active deploy instance or null if none are active |
update | public void update(DeployController<I> controller)(Code) | | Checks for updates from an admin command. The target state will be the
initial state, i.e. update will not start a lazy instance.
Parameters: controller - the owning controller |
|
|