1 19 20 21 package org.netbeans.modules.j2ee.deployment.plugins.api; 22 23 import javax.enterprise.deploy.spi.Target ; 24 import javax.enterprise.deploy.spi.status.ProgressObject ; 25 import org.netbeans.modules.j2ee.deployment.profiler.api.ProfilerServerSettings; 26 27 37 public abstract class StartServer { 38 39 46 public abstract boolean isAlsoTargetServer(Target target); 47 48 51 public abstract boolean supportsStartDeploymentManager(); 52 53 62 public boolean supportsStartTarget(Target target) { 63 return false; 64 } 65 66 79 public boolean supportsStartDebugging(Target target) { 80 return false; 81 } 82 83 96 public boolean supportsStartProfiling(Target target) { 97 return false; 98 } 99 100 108 public abstract ProgressObject startDeploymentManager(); 109 110 116 public abstract ProgressObject stopDeploymentManager(); 117 118 126 public void stopDeploymentManagerSilently() { 127 } 129 130 133 public boolean canStopDeploymentManagerSilently () { 134 return false; 135 } 136 137 140 public abstract boolean needsStartForConfigure(); 141 142 146 public abstract boolean needsStartForTargetList(); 147 148 151 public abstract boolean needsStartForAdminConfig(); 152 153 156 public abstract boolean isRunning(); 157 158 167 public boolean isRunning(Target target) { 168 if (target == null || isAlsoTargetServer(target)) { 169 return isRunning(); 170 } 171 172 return false; 173 } 174 175 178 public abstract boolean isDebuggable(Target target); 179 180 191 public ProgressObject startTarget(Target target) { 192 return null; 193 } 194 195 206 public ProgressObject stopTarget(Target target) { 207 return null; 208 } 209 210 217 public abstract ProgressObject startDebugging(Target target); 218 219 230 public ProgressObject startProfiling(Target target, ProfilerServerSettings settings) { 231 throw new UnsupportedOperationException ("Starting in profile mode is not supported by this server."); } 233 234 237 public abstract ServerDebugInfo getDebugInfo(Target target); 238 239 246 public boolean needsRestart(Target target) { 247 return false; 248 } 249 } 250 | Popular Tags |