Fetch the protocol version from the region server @param chan The channel to use for communications
(final Channel chan)
| 2237 | * @param chan The channel to use for communications |
| 2238 | */ |
| 2239 | void sendVersion(final Channel chan) { |
| 2240 | final GetProtocolVersionRequest rpc = new GetProtocolVersionRequest(); |
| 2241 | rpc.getDeferred().addBoth(new ProtocolVersionCB(chan)); |
| 2242 | Channels.write(chan, encode(rpc)); |
| 2243 | } |
| 2244 | } |