use of com.hazelcast.internal.server.tcp.TcpServerContext in project hazelcast by hazelcast.
the class DefaultNodeContext method createServer.
@Override
public Server createServer(Node node, ServerSocketRegistry registry, LocalAddressRegistry addressRegistry) {
TcpServerContext context = new TcpServerContext(node, node.nodeEngine);
Networking networking = createNetworking(node);
Config config = node.getConfig();
MetricsRegistry metricsRegistry = node.nodeEngine.getMetricsRegistry();
return new TcpServer(config, context, registry, addressRegistry, metricsRegistry, networking, node.getNodeExtension().createChannelInitializerFn(context));
}
use of com.hazelcast.internal.server.tcp.TcpServerContext in project hazelcast by hazelcast.
the class MockNodeContext method createServer.
@Override
public Server createServer(Node node, ServerSocketRegistry serverSocketRegistry, LocalAddressRegistry addressRegistry) {
TcpServerContext serverContext = new TcpServerContext(node, node.nodeEngine);
MockServer mockNetworkingService = new MockServer(serverContext, node, registry);
return new FirewallingServer(mockNetworkingService, initiallyBlockedAddresses);
}
Aggregations