HandleThread
public
final
class
HandleThread
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.HandleThread | ||
スレッドのステータス更新を処理します。
概要
フィールド | |
|---|---|
public
static
final
int |
CHUNK_STKL
|
public
static
final
int |
CHUNK_THCR
|
public
static
final
int |
CHUNK_THDE
|
public
static
final
int |
CHUNK_THEN
|
public
static
final
int |
CHUNK_THNM
|
public
static
final
int |
CHUNK_THST
|
パブリック メソッド | |
|---|---|
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
|
requestThreadStackCallRefresh(ClientImpl client, int threadId)
|
static
void
|
requestThreadUpdate(ClientImpl client)
これは UI スレッドから定期的に呼び出されます。 |
static
void
|
sendSTKL(ClientImpl client, int threadId)
クライアントに STKL(STacK List)リクエストを送信します。 |
static
void
|
sendTHEN(ClientImpl client, boolean enable)
クライアントに THEN(THread notification ENable)リクエストを送信します。 |
フィールド
CHUNK_STKL
public static final int CHUNK_STKL
CHUNK_THCR
public static final int CHUNK_THCR
CHUNK_THDE
public static final int CHUNK_THDE
CHUNK_THEN
public static final int CHUNK_THEN
CHUNK_THNM
public static final int CHUNK_THNM
CHUNK_THST
public static final int CHUNK_THST
パブリック メソッド
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 |
requestThreadStackCallRefresh
public static void requestThreadStackCallRefresh (ClientImpl client, int threadId)
| パラメータ | |
|---|---|
client |
ClientImpl |
threadId |
int |
requestThreadUpdate
public static void requestThreadUpdate (ClientImpl client)
これは UI スレッドから定期的に呼び出されます。更新をリクエストしている間、UI がロックされないように、新しいスレッドを作成します。
| パラメータ | |
|---|---|
client |
ClientImpl |
sendSTKL
public static void sendSTKL (ClientImpl client, int threadId)
クライアントに STKL(STacK List)リクエストを送信します。VM はターゲット スレッドを一時停止し、そのスタックを取得して返します。スレッドが実行されていない場合は、失敗結果が返されます。
| パラメータ | |
|---|---|
client |
ClientImpl |
threadId |
int |
sendTHEN
public static void sendTHEN (ClientImpl client, boolean enable)
クライアントに THEN(THread notification ENable)リクエストを送信します。
| パラメータ | |
|---|---|
client |
ClientImpl |
enable |
boolean |