org.eclipse.jetty.webapp.WebAppContext.isRunning()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(127)

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

WebAppContext.isRunning介绍

暂无

代码示例

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

@Override
public boolean isRunning() {
  if (doSuperIsRunning) {
    return super.isRunning();
  } else {
    return false;
  }
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * @param configurations The configurations to set.
 */
public void setConfigurations(Configuration[] configurations)
{
  if (isRunning())
    throw new IllegalStateException();
  _configurations.clear();
  if (configurations!=null)
    _configurations.addAll(Arrays.asList(configurations));
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * @param configurations The configurations to set.
 */
public void setConfigurations(Configuration[] configurations)
{
  if (isRunning())
    throw new IllegalStateException();
  _configurations.clear();
  if (configurations!=null)
    _configurations.addAll(Arrays.asList(configurations));
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * @param configurations The configuration class names.  If setConfigurations is not called
 * these classes are used to create a configurations array.
 */
public void setConfigurationClasses(String[] configurations)
{
  if (isRunning())
    throw new IllegalStateException();
  _configurationClasses.clear();
  if (configurations!=null)
    _configurationClasses.addAll(Arrays.asList(configurations));
  _configurations.clear();
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * @param configurations The configuration class names.  If setConfigurations is not called
 * these classes are used to create a configurations array.
 */
public void setConfigurationClasses(String[] configurations)
{
  if (isRunning())
    throw new IllegalStateException();
  _configurationClasses.clear();
  if (configurations!=null)
    _configurationClasses.addAll(Arrays.asList(configurations));
  _configurations.clear();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

/**
 * @param configurations The configurations to set.
 */
public void setConfigurations(Configuration[] configurations)
{
  if (isRunning())
    throw new IllegalStateException();
  _configurations = configurations==null?null:(Configuration[])configurations.clone();
  _configurationsSet = true;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

/**
 * @param configurations The configuration class names.  If setConfigurations is not called
 * these classes are used to create a configurations array.
 */
public void setConfigurationClasses(String[] configurations)
{
  if (isRunning())
    throw new IllegalStateException();
  _configurationClasses = configurations==null?null:(String[])configurations.clone();
  _configurationClassesSet = true;
  _configurations=null;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

/**
 * @param configurations The configuration class names.  If setConfigurations is not called
 * these classes are used to create a configurations array.
 */
public void setConfigurationClasses(String[] configurations)
{
  if (isRunning())
    throw new IllegalStateException();
  _configurationClasses = configurations==null?null:(String[])configurations.clone();
  _configurationClassesSet = true;
  _configurations=null;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

/**
 * @param configurations The configurations to set.
 */
public void setConfigurations(Configuration[] configurations)
{
  if (isRunning())
    throw new IllegalStateException();
  _configurations = configurations==null?null:(Configuration[])configurations.clone();
  _configurationsSet = true;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

/**
 * @param configurations The configuration class names.  If setConfigurations is not called
 * these classes are used to create a configurations array.
 */
public void setConfigurationClasses(String[] configurations)
{
  if (isRunning())
    throw new IllegalStateException();
  _configurationClasses = configurations==null?null:(String[])configurations.clone();
  _configurationClassesSet = true;
  _configurations=null;
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

/**
 * @param configurations The configurations to set.
 */
public void setConfigurations(Configuration[] configurations)
{
  if (isRunning())
    throw new IllegalStateException();
  _configurations = configurations==null?null:(Configuration[])configurations.clone();
  _configurationsSet = true;
}

代码示例来源:origin: com.github.sakserv/hadoop-mini-clusters-knox

private synchronized void internalActivateArchive(Topology topology, File warDir) throws IOException, ZipException, ParserConfigurationException, TransformerException, SAXException {
  log.activatingTopologyArchive(topology.getName(), warDir.getName());
  try {
    WebAppContext newContext = createWebAppContext(topology, warDir, Urls.decode(warDir.getName()));
    WebAppContext oldContext = deployments.get(newContext.getContextPath());
    deployments.put(newContext.getContextPath(), newContext);
    if (oldContext != null) {
      contexts.removeHandler(oldContext);
    }
    contexts.addHandler(newContext);
    if (contexts.isRunning() && !newContext.isRunning()) {
      newContext.start();
    }
  } catch (Exception e) {
    auditor.audit(Action.DEPLOY, topology.getName(), ResourceType.TOPOLOGY, ActionOutcome.FAILURE);
    log.failedToDeployTopology(topology.getName(), e);
  }
}

代码示例来源:origin: apache/knox

private synchronized void internalActivateArchive( Topology topology, File warDir ) {
 log.activatingTopologyArchive( topology.getName(), warDir.getName() );
 try {
  WebAppContext newContext = createWebAppContext( topology, warDir, Urls.decode( warDir.getName() ) );
  WebAppContext oldContext = deployments.get( newContext.getContextPath() );
  deployments.put( newContext.getContextPath(), newContext );
  if( oldContext != null ) {
   contexts.removeHandler( oldContext );
  }
  contexts.addHandler( newContext );
  if( contexts.isRunning() && !newContext.isRunning() ) {
   newContext.start();
   if(!newContext.isAvailable()) {
    throw newContext.getUnavailableException();
   }
  }
 } catch( Throwable e ) {
  auditor.audit( Action.DEPLOY, topology.getName(), ResourceType.TOPOLOGY, ActionOutcome.FAILURE );
  log.failedToDeployTopology( topology.getName(), e );
 }
}

代码示例来源:origin: mifos/head

if (!webAppContext.isAvailable() || webAppContext.isFailed() || !webAppContext.isRunning()
    || !webAppContext.isStarted() || server.isFailed() || server.isFailed() || !server.isRunning()
    || !server.isStarted()) {

代码示例来源:origin: org.apache.knox/gateway-server

private synchronized void internalActivateArchive( Topology topology, File warDir ) throws IOException, ZipException, ParserConfigurationException, TransformerException, SAXException {
 log.activatingTopologyArchive( topology.getName(), warDir.getName() );
 try {
  WebAppContext newContext = createWebAppContext( topology, warDir, Urls.decode( warDir.getName() ) );
  WebAppContext oldContext = deployments.get( newContext.getContextPath() );
  deployments.put( newContext.getContextPath(), newContext );
  if( oldContext != null ) {
   contexts.removeHandler( oldContext );
  }
  contexts.addHandler( newContext );
  if( contexts.isRunning() && !newContext.isRunning() ) {
   newContext.start();
   if(!newContext.isAvailable()) {
    throw newContext.getUnavailableException();
   }
  }
 } catch( Throwable e ) {
  auditor.audit( Action.DEPLOY, topology.getName(), ResourceType.TOPOLOGY, ActionOutcome.FAILURE );
  log.failedToDeployTopology( topology.getName(), e );
 }
}

相关文章

WebAppContext类方法