Class DdmServer


  • public class DdmServer
    extends Object
    This represents our connection to the DDM Server.
    • 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.