1 29 30 package com.caucho.server.deploy; 31 32 47 public class StartManualRedeployManualStrategy 48 extends AbstractDeployControllerStrategy { 49 private final static StartManualRedeployManualStrategy STRATEGY = 50 new StartManualRedeployManualStrategy(); 51 52 protected StartManualRedeployManualStrategy() 53 { 54 } 55 56 61 public static DeployControllerStrategy create() 62 { 63 return STRATEGY; 64 } 65 66 71 public<I extends DeployInstance> 72 void startOnInit(DeployController<I> controller) 73 { 74 controller.stopImpl(); 75 } 76 77 83 public<I extends DeployInstance> 84 void update(DeployController<I> controller) 85 { 86 if (controller.isStopped()) { 87 controller.startImpl(); 88 } 89 else if (controller.isModifiedNow()) { 90 controller.restartImpl(); 91 } 92 else if (controller.isError()) { 93 controller.restartImpl(); 94 } 95 else { 96 } 97 } 98 99 100 107 108 public <I extends DeployInstance> 109 I request(DeployController<I> controller) 110 { 111 return controller.getDeployInstance(); 112 } 113 114 121 122 public <I extends DeployInstance> 123 I subrequest(DeployController<I> controller) 124 { 125 return controller.getDeployInstance(); 126 } 127 128 134 135 public <I extends DeployInstance> 136 void alarm(DeployController<I> controller) 137 { 138 } 139 } 140 | Popular Tags |