Package org.apache.harmony.dalvik.ddmc
Class DdmServer
- java.lang.Object
-
- org.apache.harmony.dalvik.ddmc.DdmServer
-
public class DdmServer extends Object
This represents our connection to the DDM Server.
-
-
Field Summary
Fields Modifier and Type Field Description static intCLIENT_PROTOCOL_VERSION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidregisterHandler(int type, ChunkHandler handler)Register an instance of the ChunkHandler class to handle a specific chunk type.static voidregistrationComplete()The application must call here after it finishes registering handlers.static voidsendChunk(Chunk chunk)Send a chunk of data to the DDM server.static ChunkHandlerunregisterHandler(int type)Unregister the existing handler for the specified type.
-
-
-
Field Detail
-
CLIENT_PROTOCOL_VERSION
public static final int CLIENT_PROTOCOL_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerHandler
public static void registerHandler(int type, ChunkHandler handler)Register an instance of the ChunkHandler class to handle a specific chunk type. Throws an exception if the type already has a handler registered.
-
unregisterHandler
public static ChunkHandler unregisterHandler(int type)
Unregister the existing handler for the specified type. Returns the old handler.
-
registrationComplete
public static void registrationComplete()
The application must call here after it finishes registering handlers.
-
sendChunk
public static void sendChunk(Chunk chunk)
Send a chunk of data to the DDM server. This takes the form of a JDWP "event", which does not elicit a response from the server. Use this for "unsolicited" chunks.
-
-