org.mortbay.jetty.Server.isStopped()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中org.mortbay.jetty.Server.isStopped()方法的一些代码示例,展示了Server.isStopped()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.isStopped()方法的具体详情如下:
包路径:org.mortbay.jetty.Server
类名称:Server
方法名:isStopped

Server.isStopped介绍

暂无

代码示例

代码示例来源:origin: azkaban/azkaban

@Override
public boolean isStopped() {
 return this.server.isStopped();
}

代码示例来源:origin: com.linkedin.azkaban/azkaban-common

@Override
public boolean isStopped() {
 return this.server.isStopped();
}

代码示例来源:origin: com.linkedin.azkaban/azkaban

@Override
public boolean isStopped() {
  return this.server.isStopped();
}

代码示例来源:origin: net.disy.legato/legato-testing

public boolean isStopped() {
 return server.isStopped();
}

代码示例来源:origin: net.disy.legato/legato-testing

private void waitUntilStopped() {
 while (!server.isFailed() && !server.isStopped()) {
  try {
   Thread.sleep(1000);
  }
  catch (final InterruptedException ignored) {
   break;
  }
 }
 if (server.isFailed()) {
  throw new IllegalStateException("Server has failed.");
 }
}

代码示例来源:origin: org.xworker/xworker_core

public static void stop(ActionContext actionContext){
  Thing self = (Thing) actionContext.get("self");
  //World world = World.getInstance();
  Server server = getServer(self);
  if(server != null && !(server.isStopped() || server.isFailed())){
    try {
      server.stop();
    } catch (Exception e) {
      logger.info("Stop jetty error, path=" + self.getMetadata().getPath(), e);
    }
  }
  
  if(server != null){
    ObjectManager.remove("xworker.jetty.Jetty", self);
  }
}

代码示例来源:origin: net.disy.legato/legato-testing

public void stop() throws Exception {
 if (server.isStopped()) {
  // Nothing to do
 }
 else if (server.isStarting()) {
  waitUntilStarted();
  doStop();
 }
 else if (server.isStarted()) {
  doStop();
 }
 else if (server.isStopping()) {
  waitUntilStopped();
 }
 else if (server.isFailed()) {
  throw new IllegalStateException("Could not stop a server which has failed.");
 }
 else {
  doStop();
 }
}

代码示例来源:origin: org.xworker/xworker_core

if(server == null || server.isStopped() || server.isFailed()){
  server = new Server();
  Bindings bindings = actionContext.push(null);

相关文章