FileDocCategorySizeDatePackage
HandleExit.javaAPI DocAndroid 1.5 API2057Wed May 06 22:41:08 BST 2009com.android.ddmlib

HandleExit

public final class HandleExit extends ChunkHandler
Submit an exit request.

Fields Summary
public static final int
CHUNK_EXIT
private static final HandleExit
mInst
Constructors Summary
private HandleExit()



      
Methods Summary
public voidclientDisconnected(Client client)
Client went away.

public voidclientReady(Client client)
Client is ready.

public voidhandleChunk(Client client, int type, java.nio.ByteBuffer data, boolean isReply, int msgId)
Chunk handler entry point.

        handleUnknownChunk(client, type, data, isReply, msgId);
    
public static voidregister(MonitorThread mt)
Register for the packets we expect to get from the client.

public static voidsendEXIT(Client client, int status)
Send an EXIT request to the client.

        ByteBuffer rawBuf = allocBuffer(4);
        JdwpPacket packet = new JdwpPacket(rawBuf);
        ByteBuffer buf = getChunkDataBuf(rawBuf);

        buf.putInt(status);

        finishChunkPacket(packet, CHUNK_EXIT, buf.position());
        Log.d("ddm-exit", "Sending " + name(CHUNK_EXIT) + ": " + status);
        client.sendAndConsume(packet, mInst);