HandleHello

public final class HandleHello
extends ChunkHandler

java.lang.Object
   ↳ com.android.tradefed.device.server.jdwp.JdwpInterceptor
     ↳ com.android.tradefed.device.server.jdwp.chunkhandler.ChunkHandler
       ↳ com.android.tradefed.device.server.jdwp.chunkhandler.HandleHello


處理「hello」區塊 (HELO) 和功能探索。

摘要

欄位

public static final int CHUNK_FEAT

public static final int CHUNK_HELO

公用方法

void clientDisconnected(ClientImpl client)

用戶端已離開。

void clientReady(ClientImpl client)

用戶端已準備就緒。

void handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)

Chunk handler entry point.

static void register(MonitorThread mt)

註冊預期從用戶端取得的封包。

static void sendFEAT(ClientImpl client)

傳送 FEAT 要求給用戶端。

static void sendHELO(ClientImpl client, int serverProtocolVersion)

傳送 HELO 要求給用戶端。

static void sendHelloCommands(ClientImpl client, int serverProtocolVersion)

握手成功後,將 HELLO 類型的指令傳送至 VM。

欄位

CHUNK_FEAT

public static final int CHUNK_FEAT

CHUNK_HELO

public static final int CHUNK_HELO

公用方法

clientDisconnected

public void clientDisconnected (ClientImpl client)

用戶端已離開。

參數
client ClientImpl

clientReady

public void clientReady (ClientImpl client)

用戶端已準備就緒。

參數
client ClientImpl

handleChunk

public void handleChunk (ClientImpl client, 
                int type, 
                ByteBuffer data, 
                boolean isReply, 
                int msgId)

區塊處理常式進入點。

參數
client ClientImpl

type int

data ByteBuffer

isReply boolean

msgId int

註冊

public static void register (MonitorThread mt)

註冊預期從用戶端取得的封包。

參數
mt MonitorThread

sendFEAT

public static void sendFEAT (ClientImpl client)

將 FEAT 要求傳送給用戶端。

參數
client ClientImpl

sendHELO

public static void sendHELO (ClientImpl client, 
                int serverProtocolVersion)

向用戶端傳送 HELO 要求。

參數
client ClientImpl

serverProtocolVersion int

sendHelloCommands

public static void sendHelloCommands (ClientImpl client, 
                int serverProtocolVersion)

在順利完成信號交換後,將 HELLO 類型的指令傳送至 VM。

擲回
IOException