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)
チャンク ハンドラのエントリ ポイント。 |
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 |
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
チャンク ハンドラの開始点。
| パラメータ | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
register
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)
ハンドシェイクが成功した後、VM に HELLO タイプのコマンドを送信します。
| 例外 | |
|---|---|
|
IOException |