public class UnifiedAggregateEndpointManager extends Object implements AggregateEndpointManager
Constructor and Description |
---|
UnifiedAggregateEndpointManager(TcpIpEndpointManager unified,
Map<EndpointQualifier,EndpointManager<TcpIpConnection>> views) |
Modifier and Type | Method and Description |
---|---|
void |
addConnectionListener(ConnectionListener listener)
Registers a ConnectionListener.
|
Collection<TcpIpConnection> |
getActiveConnections()
Returns all active connections from the underlying EndpointManagers.
|
Collection<TcpIpConnection> |
getConnections()
Returns all connections that have been successfully established by the underlying EndpointManagers.
|
EndpointManager<TcpIpConnection> |
getEndpointManager(EndpointQualifier qualifier) |
Map<EndpointQualifier,NetworkStats> |
getNetworkStats()
Returns network stats for inbound and outbound traffic per
EndpointQualifier . |
void |
reset(boolean cleanListeners) |
public UnifiedAggregateEndpointManager(TcpIpEndpointManager unified, Map<EndpointQualifier,EndpointManager<TcpIpConnection>> views)
public Collection<TcpIpConnection> getActiveConnections()
AggregateEndpointManager
getActiveConnections
in interface AggregateEndpointManager
public Collection<TcpIpConnection> getConnections()
AggregateEndpointManager
getConnections
in interface AggregateEndpointManager
public EndpointManager<TcpIpConnection> getEndpointManager(EndpointQualifier qualifier)
public void reset(boolean cleanListeners)
public void addConnectionListener(ConnectionListener listener)
ConnectionListenable
If the same listener is registered multiple times, it will be notified multiple times.
addConnectionListener
in interface ConnectionListenable
listener
- the ConnectionListener to add.public Map<EndpointQualifier,NetworkStats> getNetworkStats()
AggregateEndpointManager
EndpointQualifier
.
Stats are available only when Advanced Networking is enabled.getNetworkStats
in interface AggregateEndpointManager
Copyright © 2019 Hazelcast, Inc.. All rights reserved.