本文整理了Java中org.eclipse.jetty.webapp.WebAppContext.isAvailable()
方法的一些代码示例,展示了WebAppContext.isAvailable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebAppContext.isAvailable()
方法的具体详情如下:
包路径:org.eclipse.jetty.webapp.WebAppContext
类名称:WebAppContext
方法名:isAvailable
暂无
代码示例来源:origin: gocd/gocd
private boolean isWebAppStarting() {
if (!isWebAppStarting) {
return false;
}
isWebAppStarting = !webAppContext.isAvailable();
return isWebAppStarting;
}
代码示例来源:origin: gocd/gocd
private void webAppHasStarted() {
when(webAppContext.isAvailable()).thenReturn(true);
}
代码示例来源:origin: gocd/gocd
private void webAppIsStarting() {
when(webAppContext.isAvailable()).thenReturn(false);
}
代码示例来源:origin: gocd/gocd
GoServerLoadingIndicationHandler(WebAppContext webAppContext, SystemEnvironment systemEnvironment) {
setContextPath("/");
setHandler(new LoadingHandler());
this.webAppContext = webAppContext;
this.isWebAppStarting = !webAppContext.isAvailable();
this.systemEnvironment = systemEnvironment;
}
代码示例来源:origin: org.leapframework/leap-webunit
public boolean isAllWebAppsAvailable(){
if(contexts.isEmpty()){
return false;
}
for(WebAppContext context : contexts.values()){
if(!context.isAvailable()){
return false;
}
}
return true;
}
代码示例来源:origin: com.carecon.fabric3/fabric3-container-web-jetty
@Override
@ManagementOperation(description = "If web app is available")
public boolean isAvailable() {
return super.isAvailable();
}
代码示例来源:origin: org.fabric3/fabric3-container-web-jetty
@Override
@ManagementOperation(description = "If web app is available")
public boolean isAvailable() {
return super.isAvailable();
}
代码示例来源: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 );
}
}
代码示例来源: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()) {
内容来源于网络,如有侵权,请联系作者删除!