Search in sources :

Example 1 with Hello

use of io.pravega.shared.protocol.netty.WireCommands.Hello in project pravega by pravega.

the class AppendProcessor method hello.

// endregion
// region RequestProcessor Implementation
@Override
public void hello(Hello hello) {
    log.info("Received hello from connection: {}", connection);
    connection.send(new Hello(WireCommands.WIRE_VERSION, WireCommands.OLDEST_COMPATIBLE_VERSION));
    if (hello.getLowVersion() > WireCommands.WIRE_VERSION || hello.getHighVersion() < WireCommands.OLDEST_COMPATIBLE_VERSION) {
        log.warn("Incompatible wire protocol versions {} from connection {}", hello, connection);
        connection.close();
    }
}
Also used : Hello(io.pravega.shared.protocol.netty.WireCommands.Hello)

Aggregations

Hello (io.pravega.shared.protocol.netty.WireCommands.Hello)1