MCPcopy Create free account
hub / github.com/apache/tomcat / init

Method init

java/org/apache/tomcat/util/net/AbstractEndpoint.java:2204–2223  ·  view source on GitHub ↗

Initialize the endpoint. @throws Exception If an error occurs during initialization

()

Source from the content-addressed store, hash-verified

2202 * @throws Exception If an error occurs during initialization
2203 */
2204 public final void init() throws Exception {
2205 if (bindOnInit) {
2206 bindWithCleanup();
2207 bindState = BindState.BOUND_ON_INIT;
2208 }
2209 if (this.domain != null) {
2210 // Register endpoint (as ThreadPool - historical name)
2211 oname = new ObjectName(domain + ":type=ThreadPool,name=\"" + getName() + "\"");
2212 Registry.getRegistry(null).registerComponent(this, oname, null);
2213
2214 ObjectName socketPropertiesOname =
2215 new ObjectName(domain + ":type=SocketProperties,name=\"" + getName() + "\"");
2216 socketProperties.setObjectName(socketPropertiesOname);
2217 Registry.getRegistry(null).registerComponent(socketProperties, socketPropertiesOname, null);
2218
2219 for (SSLHostConfig sslHostConfig : findSslHostConfigs()) {
2220 registerJmx(sslHostConfig);
2221 }
2222 }
2223 }
2224
2225
2226 private void registerJmx(SSLHostConfig sslHostConfig) {

Callers

nothing calls this directly

Calls 7

bindWithCleanupMethod · 0.95
getNameMethod · 0.95
getRegistryMethod · 0.95
findSslHostConfigsMethod · 0.95
registerJmxMethod · 0.95
registerComponentMethod · 0.65
setObjectNameMethod · 0.45

Tested by

no test coverage detected