@Module public class StartLazyRedeployAutomaticStrategy extends AbstractDeployControllerStrategy
input | stopped | active | modified | error |
---|---|---|---|---|
request | startImpl | - | restartImpl | restartImpl |
include | startImpl | - | - | - |
start | startImpl | - | restartImpl | restartImpl |
restart | startImpl | - | restartImpl | restartImpl |
stop | - | stopImpl | stopImpl | stopImpl |
alarm | - | - | stopImpl | stopImpl |
Modifier and Type | Field and Description |
---|---|
static StartLazyRedeployAutomaticStrategy |
STRATEGY |
Modifier and Type | Method and Description |
---|---|
<I extends DeployInstance> |
alarm(DeployController<I> controller)
Redeployment on a timeout alarm.
|
static DeployControllerStrategy |
create()
Returns the start="lazy" redeploy="automatic" strategy
|
<I extends DeployInstance> |
request(DeployController<I> controller)
Returns the current instance for a request, redeploying if necessary.
|
<I extends DeployInstance> |
startOnInit(DeployController<I> controller)
Called at initialization time for automatic start.
|
<I extends DeployInstance> |
subrequest(DeployController<I> controller)
Returns the current instance for a subrequest like an include,
starting if necessary.
|
<I extends DeployInstance> |
update(DeployController<I> controller)
Checks for updates from an admin command.
|
start, stop
public static final StartLazyRedeployAutomaticStrategy STRATEGY
public static DeployControllerStrategy create()
public <I extends DeployInstance> void startOnInit(DeployController<I> controller)
controller
- the owning controllerpublic <I extends DeployInstance> void update(DeployController<I> controller)
controller
- the owning controllerpublic <I extends DeployInstance> I request(DeployController<I> controller)
controller
- the owning controllerpublic <I extends DeployInstance> I subrequest(DeployController<I> controller)
controller
- the owning controllerpublic <I extends DeployInstance> void alarm(DeployController<I> controller)
controller
- the owning controller