Initialize the endpoint. @throws Exception If an error occurs during initialization
()
| 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) { |
nothing calls this directly
no test coverage detected