com.hazelcast.nio.tcp
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
IOException
public boolean isSocketInterceptorEnabled()
public PacketReader createPacketReader(TcpIpConnection connection)
public PacketWriter createPacketWriter(TcpIpConnection connection)
public int getActiveConnectionCount()
getActiveConnectionCount
in interface ConnectionManager
public int getAllTextConnections()
getAllTextConnections
in interface ConnectionManager
public int getConnectionCount()
getConnectionCount
in interface ConnectionManager
public boolean isSSLEnabled()
public void incrementTextConnections()
public IOService getIOHandler()
public int getSocketConnectTimeoutSeconds()
public void addConnectionListener(ConnectionListener listener)
addConnectionListener
in interface ConnectionManager
public boolean bind(TcpIpConnection connection, Address remoteEndPoint, Address localEndpoint, boolean reply)
public boolean registerConnection(Address remoteEndPoint, Connection connection)
registerConnection
in interface ConnectionManager
public Connection getConnection(Address address)
getConnection
in interface ConnectionManager
public Connection getOrConnect(Address address)
getOrConnect
in interface ConnectionManager
public Connection getOrConnect(Address address, boolean silent)
getOrConnect
in interface ConnectionManager
public void destroyConnection(Connection connection)
destroyConnection
in interface ConnectionManager
public void start()
start
in interface ConnectionManager
public void restart()
restart
in interface ConnectionManager
public void shutdown()
shutdown
in interface ConnectionManager
public int getCurrentClientConnections()
getCurrentClientConnections
in interface ConnectionManager
public boolean isLive()
public void dumpPerformanceMetrics(StringBuffer sb)
ConnectionManager
dumpPerformanceMetrics
in interface ConnectionManager
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.