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

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

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

Server.isRunning介绍

暂无

代码示例

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

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

代码示例来源:origin: tjake/Solandra

public void stop() throws Exception
{
 if( server.isRunning() ) {
  server.stop();
  server.join();
 }
}

代码示例来源:origin: tjake/Solandra

public void start(boolean waitForSolr) throws Exception
{
 if(!server.isRunning() ) {
  server.start();
 }
 if (waitForSolr) waitForSolr(context);
}

代码示例来源:origin: eclipse-jetty/eclipse-jetty-plugin

/**
 * {@inheritDoc}
 * 
 * @see net.sourceforge.eclipsejetty.starter.common.ServerAdapter#isRunning()
 */
public boolean isRunning()
{
  return server.isRunning();
}

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

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

代码示例来源:origin: org.paxml/paxml-selenium

public synchronized boolean isRunning() {

    return server.isRunning();
  }
}

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

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

代码示例来源:origin: org.paxml/PaxmlSelenium

public synchronized boolean isRunning() {

    return server.isRunning();
  }
}

代码示例来源:origin: DirectProject/nhin-d

public synchronized static boolean isServiceRunning()
{
  return (server != null && server.isRunning());
}

代码示例来源:origin: org.dspace.dependencies.solr/dspace-solr-server

public void start(boolean waitForSolr) throws Exception
{
 if(!server.isRunning() ) {
  server.start();
 }
 if (waitForSolr) waitForSolr(context);
}

代码示例来源:origin: org.dspace.dependencies.solr/dspace-solr-server

public void stop() throws Exception
{
 if( server.isRunning() ) {
  server.stop();
  server.join();
 }
}

代码示例来源:origin: ch.cern.hadoop/hadoop-kms

public void stop() {
 if (jetty != null && jetty.isRunning()) {
  try {
   jetty.stop();
   jetty = null;
  } catch (Exception ex) {
   throw new RuntimeException("Could not stop MiniKMS embedded Jetty, " +
     ex.getMessage(), ex);
  }
 }
}

代码示例来源:origin: com.cloudera.llama/llama

protected synchronized void startHttpServer() {
 if (httpServer != null && httpServer.isRunning()) {
  return;

代码示例来源:origin: net.sf.taverna.t2.activities/interaction-activity

while (!server.isRunning()) {
  Thread.sleep(5000);

相关文章