MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / sendVersion

Method sendVersion

src/RegionClient.java:2239–2243  ·  view source on GitHub ↗

Fetch the protocol version from the region server @param chan The channel to use for communications

(final Channel chan)

Source from the content-addressed store, hash-verified

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}

Calls 2

encodeMethod · 0.95
getDeferredMethod · 0.45