Search in sources :

Example 1 with AddConnectionEvent

use of tezc.core.worker.ioworker.AddConnectionEvent in project tezcRaft by tezc.

the class Core method createConnection.

/**
 * Create connection for node
 * @param node node
 * @return     connection for node
 */
public Connection createConnection(PeerNode node) {
    Connection conn = new Connection(dispatcher, null, node);
    dispatcher.addEvent(new AddConnectionEvent(dispatcher, conn));
    return conn;
}
Also used : Connection(tezc.core.connection.Connection) AddConnectionEvent(tezc.core.worker.ioworker.AddConnectionEvent)

Aggregations

Connection (tezc.core.connection.Connection)1 AddConnectionEvent (tezc.core.worker.ioworker.AddConnectionEvent)1