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 | ||
obsługiwać aktualizacje stanu wątku;
Podsumowanie
Fieldsem | |
|---|---|
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
|
Metody publiczne | |
|---|---|
void
|
clientDisconnected(ClientImpl client)
Klient odszedł. |
void
|
clientReady(ClientImpl client)
Klient jest gotowy. |
void
|
handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Punkt wejścia do modułu obsługi fragmentów. |
static
void
|
register(MonitorThread mt)
Zarejestruj pakiety, które mają być wysłane przez klienta. |
static
void
|
requestThreadStackCallRefresh(ClientImpl client, int threadId)
|
static
void
|
requestThreadUpdate(ClientImpl client)
Jest ona okresowo wywoływana z wątku interfejsu. |
static
void
|
sendSTKL(ClientImpl client, int threadId)
Wyślij do klienta żądanie STKL (STacK List). |
static
void
|
sendTHEN(ClientImpl client, boolean enable)
Wyślij do klienta żądanie THEN (THread notification ENable). |
Fieldsem
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
Metody publiczne
clientDisconnected
public void clientDisconnected (ClientImpl client)
Klient odszedł.
| Parametry | |
|---|---|
client |
ClientImpl |
clientReady
public void clientReady (ClientImpl client)
Klient jest gotowy.
| Parametry | |
|---|---|
client |
ClientImpl |
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Punkt wejścia do modułu obsługi fragmentów.
| Parametry | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
zarejestrować się,
public static void register (MonitorThread mt)
Zarejestruj pakiety, które mają być wysłane przez klienta.
| Parametry | |
|---|---|
mt |
MonitorThread |
requestThreadStackCallRefresh
public static void requestThreadStackCallRefresh (ClientImpl client, int threadId)
| Parametry | |
|---|---|
client |
ClientImpl |
threadId |
int |
requestThreadUpdate
public static void requestThreadUpdate (ClientImpl client)
Jest ona okresowo wywoływana z wątku interfejsu. Aby uniknąć blokowania interfejsu podczas wysyłania żądań aktualizacji, tworzymy nowy wątek.
| Parametry | |
|---|---|
client |
ClientImpl |
sendSTKL
public static void sendSTKL (ClientImpl client, int threadId)
Wyślij do klienta żądanie STKL (STacK List). Maszyna wirtualna zawiesi wątek docelowy, pobierze jego stos i go zwróci. Jeśli wątek nie jest już uruchomiony, zostanie zwrócony wynik niepowodzenia.
| Parametry | |
|---|---|
client |
ClientImpl |
threadId |
int |
sendTHEN
public static void sendTHEN (ClientImpl client, boolean enable)
Wyślij do klienta żądanie THEN (THread notification ENable).
| Parametry | |
|---|---|
client |
ClientImpl |
enable |
boolean |