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


Obsługa fragmentu „hello” (HELO) i odkrywanie funkcji.

Podsumowanie

Fieldsem

public static final int CHUNK_FEAT

public static final int CHUNK_HELO

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 sendFEAT(ClientImpl client)

Wysyłanie do klienta prośby FEAT.

static void sendHELO(ClientImpl client, int serverProtocolVersion)

Wysyła do klienta żądanie HELO.

static void sendHelloCommands(ClientImpl client, int serverProtocolVersion)

Po pomyślnym nawiązaniu połączenia wysyła do maszyny wirtualnej polecenia typu HELLO.

Fieldsem

CHUNK_FEAT

public static final int CHUNK_FEAT

CHUNK_HELO

public static final int CHUNK_HELO

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

sendFEAT

public static void sendFEAT (ClientImpl client)

Wysyłanie do klienta prośby FEAT.

Parametry
client ClientImpl

sendHELO

public static void sendHELO (ClientImpl client, 
                int serverProtocolVersion)

Wysyła do klienta żądanie HELO.

Parametry
client ClientImpl

serverProtocolVersion int

sendHelloCommands

public static void sendHelloCommands (ClientImpl client, 
                int serverProtocolVersion)

Po pomyślnym nawiązaniu połączenia wysyła do maszyny wirtualnej polecenia typu HELLO.

Zgłasza
IOException