com.caucho.server.deploy
Class StartLazyRedeployManualStrategy

java.lang.Object
  extended by com.caucho.server.deploy.AbstractDeployControllerStrategy
      extended by com.caucho.server.deploy.StartManualRedeployManualStrategy
          extended by com.caucho.server.deploy.StartLazyRedeployManualStrategy
All Implemented Interfaces:
DeployControllerStrategy

public class StartLazyRedeployManualStrategy
extends StartManualRedeployManualStrategy

The start-mode="lazy", redeploy-model="manual" controller strategy. initial state = stop

input stopped active modified error
start startImpl- restartImplrestartImpl
update startImpl- restartImplrestartImpl
stop - stopImplstopImpl stopImpl
request- - - -
include- - - -
alarm - - - -


Method Summary
static DeployControllerStrategy create()
          Returns the start="lazy" redeploy="automatic" strategy
<I extends DeployInstance>
I
request(DeployController<I> controller)
          Returns the current instance, redeploying if necessary.
<I extends DeployInstance>
void
startOnInit(DeployController<I> controller)
          Called at initialization time for automatic start.
<I extends DeployInstance>
I
subrequest(DeployController<I> controller)
          Returns the current instance, starting if necessary.
 
Methods inherited from class com.caucho.server.deploy.StartManualRedeployManualStrategy
alarm, update
 
Methods inherited from class com.caucho.server.deploy.AbstractDeployControllerStrategy
start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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