本文整理了Java中org.mortbay.jetty.Server.isStopped()
方法的一些代码示例,展示了Server.isStopped()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.isStopped()
方法的具体详情如下:
包路径:org.mortbay.jetty.Server
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!