com.caucho.env.deploy
Class StartLazyRedeployManualStrategy
java.lang.Object
com.caucho.env.deploy.AbstractDeployControllerStrategy
com.caucho.env.deploy.StartManualRedeployManualStrategy
com.caucho.env.deploy.StartLazyRedeployManualStrategy
- All Implemented Interfaces:
- DeployControllerStrategy
@Module
public class StartLazyRedeployManualStrategy
- extends StartManualRedeployManualStrategy
The start-mode="lazy", redeploy-model="manual" controller strategy.
initial state = stop
| input | stopped | active | modified | error
|
|---|
| start | startImpl | - | restartImpl | restartImpl
|
| update | startImpl | - | restartImpl | restartImpl
|
| stop | - | stopImpl | stopImpl | stopImpl
|
| request | - | - | - | -
|
| include | - | - | - | -
|
| alarm | - | - | - | -
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STRATEGY
public static final StartLazyRedeployManualStrategy STRATEGY
create
public static DeployControllerStrategy create()
- Returns the start="lazy" redeploy="automatic" strategy
- Returns:
- the singleton strategy
startOnInit
public <I extends DeployInstance> void startOnInit(DeployController<I> controller)
- Called at initialization time for automatic start.
- Specified by:
startOnInit in interface DeployControllerStrategy- Overrides:
startOnInit in class StartManualRedeployManualStrategy
- Parameters:
controller - the owning controller
request
public <I extends DeployInstance> I request(DeployController<I> controller)
- Returns the current instance, redeploying if necessary.
- Specified by:
request in interface DeployControllerStrategy- Overrides:
request in class StartManualRedeployManualStrategy
- Parameters:
controller - the owning controller
- Returns:
- the current deploy instance
subrequest
public <I extends DeployInstance> I subrequest(DeployController<I> controller)
- Returns the current instance, starting if necessary.
- Specified by:
subrequest in interface DeployControllerStrategy- Overrides:
subrequest in class StartManualRedeployManualStrategy
- Parameters:
controller - the owning controller
- Returns:
- the current deploy instance