Package com.caucho.lifecycle

Examples of com.caucho.lifecycle.LifecycleState


   */
  @Override
  public<I extends DeployInstance>
  void update(DeployController<I> controller)
  {
    LifecycleState state = controller.getState();

    if (state.isIdle()) {
      // server/1d08
    }
    else if (state.isStopped()) {
      // server/1d05
      controller.stopLazyImpl();
    }
    else if (state.isError()) {
      controller.stopLazyImpl();
    }
    else if (controller.isModifiedNow()) {
      // 1d0n, 1d0o
      controller.stopLazyImpl();
View Full Code Here


   */
  @Override
  public <I extends DeployInstance>
  I request(DeployController<I> controller)
  {
    LifecycleState state = controller.getState();
   
    if (state.isIdle()) {
      // server/1d06
      return controller.startImpl();
    }
    else if (state.isStopped()) {
      // server/1d00
      return controller.getDeployInstance();
    }
    else if (state.isError()) {
      // server/1d13
      return controller.restartImpl();
    }
    else if (controller.isModified()) {
      // server/1d0i
View Full Code Here

   */
  @Override
  public <I extends DeployInstance>
  I subrequest(DeployController<I> controller)
  {
    LifecycleState state = controller.getState();
   
    if (state.isIdle()) {
      // server/1d07
      return controller.startImpl();
    }
    else if (state.isStopped()) {
      // server/1d01
      return controller.getDeployInstance();
    }
    else if (state.isError() && controller.isModified()) {
      // server/1d0x
      return controller.restartImpl();
    }
    else if (controller.isModified()) {
      // server/1d0j
View Full Code Here

   */
  @Override
  public <I extends DeployInstance>
  void alarm(DeployController<I> controller)
  {
    LifecycleState state = controller.getState();
   
    if (state.isIdle()) {
      // server/1d08
    }
    else if (state.isStopped()) {
      // server/1d02
    }
    else if (state.isError()) {
      // server/1d0w
    }
    else if (controller.isModified()) {
      // server/1d0k
      controller.stopLazyImpl();
View Full Code Here

   */
  @Override
  public <I extends DeployInstance>
  void start(DeployController<I> controller)
  {
    LifecycleState state = controller.getState();
   
    if (state.isStopped()) {
      // server/1d03
      controller.startImpl();
    }
    else if (state.isError()) {
      controller.restartImpl();
    }
    else if (controller.isModifiedNow()) {
      // server/1d0p
      controller.restartImpl();
View Full Code Here

   */
  @Override
  public<I extends DeployInstance>
  void update(DeployController<I> controller)
  {
    LifecycleState state = controller.getState();
   
    if (state.isStopped()) {
      controller.startImpl();
    }
    else if (state.isError()) {
      controller.restartImpl();
    }
    else if (controller.isModifiedNow()) {
      controller.restartImpl();
    }
View Full Code Here

   */
  @Override
  public<I extends DeployInstance>
  void update(DeployController<I> controller)
  {
    LifecycleState state = controller.getState();
   
    if (state.isIdle()) {
      // server/1d18
    }
    else if (state.isStopped()) {
      // server/1d15
      controller.startImpl();
    }
    else if (state.isError()) {
      controller.restartImpl();
    }
    else if (controller.isModifiedNow()) {
      controller.logModified(controller.getLog());
      // 1d1n, 1d1o
View Full Code Here

   */
  @Override
  public <I extends DeployInstance>
  I request(DeployController<I> controller)
  {
    LifecycleState state = controller.getState();

    if (state.isIdle()) {
      // server/1d16
      return controller.startImpl();
    }
    else if (state.isStopped()) {
      // server/1d10
      return controller.getDeployInstance();
    }
    else if (controller.isModified()) {
      controller.logModified(controller.getLog());
View Full Code Here

   */
  @Override
  public <I extends DeployInstance>
  I subrequest(DeployController<I> controller)
  {
    LifecycleState state = controller.getState();
   
    if (state.isIdle()) {
      // server/1d17
      return controller.startImpl();
    }
    else if (state.isStopped()) {
      // server/1d11
      return controller.getDeployInstance();
    }
    else if (controller.isModified()) {
      controller.logModified(controller.getLog());
View Full Code Here

   */
  @Override
  public <I extends DeployInstance>
  void alarm(DeployController<I> controller)
  {
    LifecycleState state = controller.getState();
   
    if (state.isStopped()) {
      // server/1d12
    }
    else if (state.isIdle()) {
      // server/1d18
    }
    else if (controller.isModified()) {
      // server/1d1k
      controller.logModified(controller.getLog());
View Full Code Here

TOP

Related Classes of com.caucho.lifecycle.LifecycleState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.