public class TcpIpConnectionManager extends Object implements ConnectionManager
| Constructor and Description |
|---|
TcpIpConnectionManager(IOService ioService,
ServerSocketChannel serverSocketChannel,
HazelcastThreadGroup hazelcastThreadGroup,
LoggingService loggingService) |
public TcpIpConnectionManager(IOService ioService, ServerSocketChannel serverSocketChannel, HazelcastThreadGroup hazelcastThreadGroup, LoggingService loggingService)
public void interceptSocket(Socket socket, boolean onAccept) throws IOException
IOExceptionpublic boolean isSocketInterceptorEnabled()
public PacketReader createPacketReader(TcpIpConnection connection)
public PacketWriter createPacketWriter(TcpIpConnection connection)
public IOBalancer getIoBalancer()
public Set<TcpIpConnection> getActiveConnections()
public InSelectorImpl[] getInSelectors()
public OutSelectorImpl[] getOutSelectors()
public int getActiveConnectionCount()
getActiveConnectionCount in interface ConnectionManagerpublic int getAllTextConnections()
getAllTextConnections in interface ConnectionManagerpublic int getConnectionCount()
getConnectionCount in interface ConnectionManagerpublic boolean isSSLEnabled()
public void incrementTextConnections()
public IOService getIOHandler()
public int getSocketConnectTimeoutSeconds()
public void addConnectionListener(ConnectionListener listener)
addConnectionListener in interface ConnectionManagerpublic boolean bind(TcpIpConnection connection, Address remoteEndPoint, Address localEndpoint, boolean reply)
public boolean registerConnection(Address remoteEndPoint, Connection connection)
registerConnection in interface ConnectionManagerpublic Connection getConnection(Address address)
getConnection in interface ConnectionManagerpublic Connection getOrConnect(Address address)
getOrConnect in interface ConnectionManagerpublic Connection getOrConnect(Address address, boolean silent)
getOrConnect in interface ConnectionManagerpublic void destroyConnection(Connection connection)
destroyConnection in interface ConnectionManagerpublic void start()
start in interface ConnectionManagerpublic void restart()
restart in interface ConnectionManagerpublic void shutdown()
shutdown in interface ConnectionManagerpublic int getCurrentClientConnections()
getCurrentClientConnections in interface ConnectionManagerpublic boolean isLive()
public void dumpPerformanceMetrics(StringBuffer sb)
ConnectionManagerdumpPerformanceMetrics in interface ConnectionManagerCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.