com.hazelcast.nio
Class ConnectionManager

java.lang.Object
  extended by com.hazelcast.nio.ConnectionManager

public class ConnectionManager
extends Object


Field Summary
protected  ILogger logger
           
 
Constructor Summary
ConnectionManager(Node node)
           
 
Method Summary
 void addConnectionListener(ConnectionListener listener)
           
 void appendState(StringBuffer sbState)
           
 void attachConnection(Address address, Connection conn)
           
 boolean bind(Address endPoint, Connection connection, boolean accept)
           
 Connection createConnection(SocketChannel socketChannel, boolean acceptor)
           
 void destroyConnection(Connection connection)
           
 Connection detachAndGetConnection(Address address)
           
 void failedConnection(Address address)
           
 int getAllTextConnections()
           
 Connection getConnection(Address address)
           
 int getCurrentClientConnections()
           
 Connection getOrConnect(Address address)
           
 int getTotalWriteQueueSize()
           
 void incrementTextConnections()
           
 void onRestart()
           
 void shutdown()
           
 void start()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected final ILogger logger
Constructor Detail

ConnectionManager

public ConnectionManager(Node node)
Method Detail

addConnectionListener

public void addConnectionListener(ConnectionListener listener)

bind

public boolean bind(Address endPoint,
                    Connection connection,
                    boolean accept)

createConnection

public Connection createConnection(SocketChannel socketChannel,
                                   boolean acceptor)

failedConnection

public void failedConnection(Address address)

getConnection

public Connection getConnection(Address address)

getOrConnect

public Connection getOrConnect(Address address)

detachAndGetConnection

public Connection detachAndGetConnection(Address address)

attachConnection

public void attachConnection(Address address,
                             Connection conn)

destroyConnection

public void destroyConnection(Connection connection)

start

public void start()

onRestart

public void onRestart()

getTotalWriteQueueSize

public int getTotalWriteQueueSize()

shutdown

public void shutdown()

toString

public String toString()
Overrides:
toString in class Object

getCurrentClientConnections

public int getCurrentClientConnections()

getAllTextConnections

public int getAllTextConnections()

incrementTextConnections

public void incrementTextConnections()

appendState

public void appendState(StringBuffer sbState)


Copyright © 2011 Hazel Bilisim Ltd.. All Rights Reserved.