com.caucho.env.deploy
Class StartManualRedeployManualStrategy

java.lang.Object
  extended by com.caucho.env.deploy.AbstractDeployControllerStrategy
      extended by com.caucho.env.deploy.StartManualRedeployManualStrategy
All Implemented Interfaces:
DeployControllerStrategy
Direct Known Subclasses:
StartAutoRedeployManualStrategy, StartLazyRedeployManualStrategy

public class StartManualRedeployManualStrategy
extends AbstractDeployControllerStrategy

The start-mode="manual", 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 - - - -


Field Summary
static StartManualRedeployManualStrategy STRATEGY
           
 
Constructor Summary
protected StartManualRedeployManualStrategy()
           
 
Method Summary
<I extends DeployInstance>
void
alarm(DeployController<I> controller)
          Returns the current instance.
static DeployControllerStrategy create()
          Returns the start="lazy" redeploy="automatic" strategy
<I extends DeployInstance>
I
request(DeployController<I> controller)
          Returns the current instance.
<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.
<I extends DeployInstance>
void
update(DeployController<I> controller)
          Checks for updates from an admin command.
 
Methods inherited from class com.caucho.env.deploy.AbstractDeployControllerStrategy
start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRATEGY

public static final StartManualRedeployManualStrategy STRATEGY
Constructor Detail

StartManualRedeployManualStrategy

protected StartManualRedeployManualStrategy()
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.

Parameters:
controller - the owning controller

update

public <I extends DeployInstance> void update(DeployController<I> controller)
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

request

public <I extends DeployInstance> I request(DeployController<I> controller)
Returns the current instance. This strategy does not lazily restart the instance.

Parameters:
controller - the owning controller
Returns:
the current deploy instance

subrequest

public <I extends DeployInstance> I subrequest(DeployController<I> controller)
Returns the current instance. This strategy does not lazily restart the instance.

Parameters:
controller - the owning controller
Returns:
the current deploy instance

alarm

public <I extends DeployInstance> void alarm(DeployController<I> controller)
Returns the current instance. This strategy does not lazily restart the instance.

Parameters:
controller - the owning controller