本文整理了Java中org.apache.catalina.startup.Embedded.setState()
方法的一些代码示例,展示了Embedded.setState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Embedded.setState()
方法的具体详情如下:
包路径:org.apache.catalina.startup.Embedded
类名称:Embedded
方法名:setState
暂无
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
/**
* Stop nested components ({@link Connector}s and {@link Engine}s) and
* implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that needs to be reported
*/
@Override
protected void stopInternal() throws LifecycleException {
if( log.isDebugEnabled() )
log.debug("Stopping embedded server");
setState(LifecycleState.STOPPING);
// Stop our defined Connectors first
for (int i = 0; i < connectors.length; i++) {
((Lifecycle) connectors[i]).stop();
}
// Stop our defined Engines second
for (int i = 0; i < engines.length; i++) {
engines[i].stop();
}
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
/**
* Stop nested components ({@link Connector}s and {@link Engine}s) and
* implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that needs to be reported
*/
@Override
protected void stopInternal() throws LifecycleException {
if( log.isDebugEnabled() )
log.debug("Stopping embedded server");
setState(LifecycleState.STOPPING);
// Stop our defined Connectors first
for (int i = 0; i < connectors.length; i++) {
((Lifecycle) connectors[i]).stop();
}
// Stop our defined Engines second
for (int i = 0; i < engines.length; i++) {
engines[i].stop();
}
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* Stop nested components ({@link Connector}s and {@link Engine}s) and
* implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that needs to be reported
*/
@Override
protected void stopInternal() throws LifecycleException {
if( log.isDebugEnabled() )
log.debug("Stopping embedded server");
fireLifecycleEvent(STOP_EVENT, null);
setState(LifecycleState.STOPPING);
// Stop our defined Connectors first
for (int i = 0; i < connectors.length; i++) {
((Lifecycle) connectors[i]).stop();
}
// Stop our defined Engines second
for (int i = 0; i < engines.length; i++) {
engines[i].stop();
}
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
/**
* Stop nested components ({@link Connector}s and {@link Engine}s) and
* implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that needs to be reported
*/
@Override
protected void stopInternal() throws LifecycleException {
if( log.isDebugEnabled() )
log.debug("Stopping embedded server");
fireLifecycleEvent(STOP_EVENT, null);
setState(LifecycleState.STOPPING);
// Stop our defined Connectors first
for (int i = 0; i < connectors.length; i++) {
((Lifecycle) connectors[i]).stop();
}
// Stop our defined Engines second
for (int i = 0; i < engines.length; i++) {
engines[i].stop();
}
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/**
* Stop nested components ({@link Connector}s and {@link Engine}s) and
* implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that needs to be reported
*/
@Override
protected void stopInternal() throws LifecycleException {
if( log.isDebugEnabled() )
log.debug("Stopping embedded server");
fireLifecycleEvent(STOP_EVENT, null);
setState(LifecycleState.STOPPING);
// Stop our defined Connectors first
for (int i = 0; i < connectors.length; i++) {
((Lifecycle) connectors[i]).stop();
}
// Stop our defined Engines second
for (int i = 0; i < engines.length; i++) {
engines[i].stop();
}
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
/**
* Start nested components ({@link Connector}s and {@link Engine}s) and
* implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that prevents this component from being used
*/
@Override
protected void startInternal() throws LifecycleException {
if( log.isInfoEnabled() )
log.info("Starting tomcat server");
// Validate the setup of our required system properties
initDirs();
// Initialize some naming specific properties
initNaming();
setState(LifecycleState.STARTING);
// Start our defined Engines first
for (int i = 0; i < engines.length; i++) {
engines[i].start();
}
// Start our defined Connectors second
for (int i = 0; i < connectors.length; i++) {
((Lifecycle) connectors[i]).start();
}
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
/**
* Start nested components ({@link Connector}s and {@link Engine}s) and
* implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that prevents this component from being used
*/
@Override
protected void startInternal() throws LifecycleException {
if( log.isInfoEnabled() )
log.info("Starting tomcat server");
// Validate the setup of our required system properties
initDirs();
// Initialize some naming specific properties
initNaming();
setState(LifecycleState.STARTING);
// Start our defined Engines first
for (int i = 0; i < engines.length; i++) {
engines[i].start();
}
// Start our defined Connectors second
for (int i = 0; i < connectors.length; i++) {
((Lifecycle) connectors[i]).start();
}
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/**
* Start nested components ({@link Connector}s and {@link Engine}s) and
* implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that prevents this component from being used
*/
@Override
protected void startInternal() throws LifecycleException {
if( log.isInfoEnabled() )
log.info("Starting tomcat server");
// Validate the setup of our required system properties
initDirs();
// Initialize some naming specific properties
initNaming();
setState(LifecycleState.STARTING);
// Start our defined Engines first
for (int i = 0; i < engines.length; i++) {
engines[i].start();
}
// Start our defined Connectors second
for (int i = 0; i < connectors.length; i++) {
((Lifecycle) connectors[i]).start();
}
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
/**
* Start nested components ({@link Connector}s and {@link Engine}s) and
* implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that prevents this component from being used
*/
@Override
protected void startInternal() throws LifecycleException {
if( log.isInfoEnabled() )
log.info("Starting tomcat server");
// Validate the setup of our required system properties
initDirs();
// Initialize some naming specific properties
initNaming();
setState(LifecycleState.STARTING);
// Start our defined Engines first
for (int i = 0; i < engines.length; i++) {
engines[i].start();
}
// Start our defined Connectors second
for (int i = 0; i < connectors.length; i++) {
((Lifecycle) connectors[i]).start();
}
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* Start nested components ({@link Connector}s and {@link Engine}s) and
* implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that prevents this component from being used
*/
@Override
protected void startInternal() throws LifecycleException {
if( log.isInfoEnabled() )
log.info("Starting tomcat server");
// Validate the setup of our required system properties
initDirs();
// Initialize some naming specific properties
initNaming();
setState(LifecycleState.STARTING);
// Start our defined Engines first
for (int i = 0; i < engines.length; i++) {
engines[i].start();
}
// Start our defined Connectors second
for (int i = 0; i < connectors.length; i++) {
((Lifecycle) connectors[i]).start();
}
}
内容来源于网络,如有侵权,请联系作者删除!