MCPcopy Index your code
hub / github.com/apache/tomcat / unbind

Method unbind

java/org/apache/tomcat/util/net/NioEndpoint.java:436–457  ·  view source on GitHub ↗

Deallocate NIO memory pools, and close server socket.

()

Source from the content-addressed store, hash-verified

434 * Deallocate NIO memory pools, and close server socket.
435 */
436 @Override
437 public void unbind() throws Exception {
438 if (log.isTraceEnabled()) {
439 log.trace("Destroy initiated for " + new InetSocketAddress(getAddress(), getPortWithOffset()));
440 }
441 if (running) {
442 stop();
443 }
444 try {
445 doCloseServerSocket();
446 } catch (IOException ioe) {
447 getLog().warn(sm.getString("endpoint.serverSocket.closeFailed", getName()), ioe);
448 }
449 destroySsl();
450 super.unbind();
451 if (getHandler() != null) {
452 getHandler().recycle();
453 }
454 if (log.isTraceEnabled()) {
455 log.trace("Destroy completed for " + new InetSocketAddress(getAddress(), getPortWithOffset()));
456 }
457 }
458
459
460 @Override

Callers

nothing calls this directly

Calls 14

doCloseServerSocketMethod · 0.95
getLogMethod · 0.95
destroySslMethod · 0.80
isTraceEnabledMethod · 0.65
traceMethod · 0.65
getAddressMethod · 0.65
getPortWithOffsetMethod · 0.65
stopMethod · 0.65
warnMethod · 0.65
getStringMethod · 0.65
getNameMethod · 0.65
unbindMethod · 0.65

Tested by

no test coverage detected