com.caucho.env.deploy
Class AbstractDeployControllerStrategy

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

@Module
public abstract class AbstractDeployControllerStrategy
extends java.lang.Object
implements DeployControllerStrategy

The abstract strategy implements the start, update, and stop commands which are common to all strategies.

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


Constructor Summary
AbstractDeployControllerStrategy()
           
 
Method Summary
<I extends DeployInstance>
void
start(DeployController<I> controller)
          Starts the instance.
<I extends DeployInstance>
void
stop(DeployController<I> controller)
          Stops the instance from an admin command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.caucho.env.deploy.DeployControllerStrategy
alarm, request, startOnInit, subrequest, update
 

Constructor Detail

AbstractDeployControllerStrategy

public AbstractDeployControllerStrategy()
Method Detail

start

public <I extends DeployInstance> void start(DeployController<I> controller)
Starts the instance. Called from an admin start.

Specified by:
start in interface DeployControllerStrategy
Parameters:
controller - the owning controller

stop

public <I extends DeployInstance> void stop(DeployController<I> controller)
Stops the instance from an admin command.

Specified by:
stop in interface DeployControllerStrategy
Parameters:
controller - the owning controller