本文整理了Java中org.apache.catalina.connector.Connector.stop()
方法的一些代码示例,展示了Connector.stop()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Connector.stop()
方法的具体详情如下:
包路径:org.apache.catalina.connector.Connector
类名称:Connector
方法名:stop
[英]Terminate processing requests via this Connector.
[中]通过此连接器终止处理请求。
代码示例来源:origin: tomcat/catalina
public void postDeregister() {
try {
if( started ) {
stop();
}
} catch( Throwable t ) {
log.error( "Unregistering - can't stop", t);
}
}
代码示例来源:origin: jboss.web/jbossweb
public void postDeregister() {
try {
if( started ) {
stop();
}
} catch( Throwable t ) {
log.error( "Unregistering - can't stop", t);
}
}
代码示例来源:origin: org.glassfish.web/web-glue
public void stop() throws LifecycleException {
super.stop();
if ( grizzlyMonitor != null ) {
grizzlyMonitor.destroy();
grizzlyMonitor=null;
}
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-tomcat
public void doStop() {
try{
connector.stop();
} catch (LifecycleException e){
log.error(e);
}
container.removeConnector(connector);
log.debug(name + " connector stopped");
}
代码示例来源:origin: org.jboss.web/jbossweb
public void postDeregister() {
try {
if( started ) {
stop();
}
} catch( Throwable t ) {
CatalinaLogger.CONNECTOR_LOGGER.connectorStopFailed(t);
}
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-tomcat
public synchronized void stopConnectors() throws Exception
{
if (tomcatDeployer == null)
throw new IllegalStateException("Must set TomcatDeployer before stopping connectors");
if (!connectorsRunning)
return;
// Notify listeners that connectors have started processing requests
sendNotification(new Notification(TOMCAT_CONNECTORS_STOPPED, this, getNextNotificationSequenceNumber()));
MBeanServer server = super.getServer();
ObjectName service = new ObjectName(tomcatDeployer.getDomain() + ":type=Service,serviceName=jboss.web");
Object[] args = {};
String[] sig = {};
Connector[] connectors = (Connector[]) server.invoke(service, "findConnectors", args, sig);
for (int n = 0; n < connectors.length; n++)
{
connectors[n].pause();
connectors[n].stop();
}
connectorsRunning = false;
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
if (getState().isAvailable()) {
try {
connectors[j].stop();
} catch (LifecycleException e) {
log.error(sm.getString(
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
if (connectors[j].getState().isAvailable()) {
try {
connectors[j].stop();
} catch (LifecycleException e) {
log.error(sm.getString(
代码示例来源:origin: codefollower/Tomcat-Research
if (connectors[j].getState().isAvailable()) {
try {
connectors[j].stop();
} catch (LifecycleException e) {
log.error(sm.getString(
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
if (connectors[j].getState().isAvailable()) {
try {
connectors[j].stop();
} catch (LifecycleException e) {
log.error(sm.getString(
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
if (getState().isAvailable()) {
try {
connectors[j].stop();
} catch (LifecycleException e) {
log.error(sm.getString(
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
if (connectors[j].getState().isAvailable()) {
try {
connectors[j].stop();
} catch (LifecycleException e) {
log.error(sm.getString(
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
if (connectors[j].getState().isAvailable()) {
try {
connectors[j].stop();
} catch (LifecycleException e) {
log.error(sm.getString(
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
if (getState().isAvailable()) {
try {
connectors[j].stop();
} catch (LifecycleException e) {
log.error(sm.getString(
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
connector.stop();
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
connector.stop();
} catch (Exception e) {
log.error(sm.getString(
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
connector.stop();
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
connector.stop();
} catch (Exception e) {
log.error(sm.getString(
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
connector.stop();
} catch (Exception e) {
log.error(sm.getString(
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
connector.stop();
} catch (Exception e) {
log.error(sm.getString(
内容来源于网络,如有侵权,请联系作者删除!