public class TcpIpNetworkingService extends Object implements NetworkingService<TcpIpConnection>
| Constructor and Description |
|---|
TcpIpNetworkingService(Config config,
IOService ioService,
ServerSocketRegistry registry,
LoggingService loggingService,
MetricsRegistry metricsRegistry,
Networking networking,
ChannelInitializerProvider channelInitializerProvider) |
TcpIpNetworkingService(Config config,
IOService ioService,
ServerSocketRegistry registry,
LoggingService loggingService,
MetricsRegistry metricsRegistry,
Networking networking,
ChannelInitializerProvider channelInitializerProvider,
HazelcastProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
AggregateEndpointManager |
getAggregateEndpointManager()
The aggregate endpoint manager acts as a composite of all configured endpoints.
|
EndpointManager<TcpIpConnection> |
getEndpointManager(EndpointQualifier qualifier)
Returns the respective endpoint manager based on the qualifier.
|
IOService |
getIoService()
Returns the I/O Service
|
Networking |
getNetworking()
Returns the Networking engine
Shared across the multiple (or not) endpoints
|
boolean |
isLive()
Flag indicating the liveness status of the Network
|
void |
scheduleDeferred(Runnable task,
long delay,
TimeUnit unit)
Global scheduler for all Endpoints responsible of message retransmission
|
void |
shutdown()
Shutdowns the service completely.
|
void |
start()
Starts the service, initializes its endpoints, starts threads, etc.
|
void |
stop()
Stops the service, releases its resources, stops threads, etc.
|
public TcpIpNetworkingService(Config config, IOService ioService, ServerSocketRegistry registry, LoggingService loggingService, MetricsRegistry metricsRegistry, Networking networking, ChannelInitializerProvider channelInitializerProvider)
public TcpIpNetworkingService(Config config, IOService ioService, ServerSocketRegistry registry, LoggingService loggingService, MetricsRegistry metricsRegistry, Networking networking, ChannelInitializerProvider channelInitializerProvider, HazelcastProperties properties)
public IOService getIoService()
NetworkingServicegetIoService in interface NetworkingService<TcpIpConnection>public Networking getNetworking()
NetworkingServicegetNetworking in interface NetworkingService<TcpIpConnection>public boolean isLive()
NetworkingServiceisLive in interface NetworkingService<TcpIpConnection>public void start()
NetworkingServiceIf it is already started, then this method has no effect.
start in interface NetworkingService<TcpIpConnection>public void stop()
NetworkingServiceNetworkingService.start().
This method has no effect if it is already stopped or shutdown.
Currently stop is called during the merge process to detach node from the current cluster. After
node becomes ready to join to the new cluster, start is called to re-initialize the Endpoints.
stop in interface NetworkingService<TcpIpConnection>public void shutdown()
NetworkingServiceThis method has no effect if it is already shutdown.
shutdown in interface NetworkingService<TcpIpConnection>public AggregateEndpointManager getAggregateEndpointManager()
MemberViewUnifiedEndpointManager and the others).getAggregateEndpointManager in interface NetworkingService<TcpIpConnection>public EndpointManager<TcpIpConnection> getEndpointManager(EndpointQualifier qualifier)
TcpIpUnifiedEndpointManager
eg. MemberViewUnifiedEndpointManager or ClientViewUnifiedEndpointManager which report connections based
on the qualifier, but they register/create connection directly on the Unified manager.getEndpointManager in interface NetworkingService<TcpIpConnection>qualifier - public void scheduleDeferred(Runnable task, long delay, TimeUnit unit)
NetworkingServicescheduleDeferred in interface NetworkingService<TcpIpConnection>Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.