1 /* |
1 /* |
2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.jdi.connect; |
26 package com.sun.jdi.connect; |
27 |
27 |
28 import com.sun.jdi.connect.spi.TransportService; // for javadoc |
28 import com.sun.jdi.connect.spi.TransportService; |
29 |
29 |
30 /** |
30 /** |
31 * A method of communication between a debugger and a target VM. |
31 * A method of communication between a debugger and a target VM. |
32 * |
32 * |
33 * <p> A Transport represents the transport mechanism used by a |
33 * <p> A Transport represents the transport mechanism used by a |
34 * {@link com.sun.jdi.connect.Connector Connector} to establish a |
34 * {@link Connector Connector} to establish a connection with a |
35 * connection with a target VM. It consists of a name which is obtained |
35 * target VM. It consists of a name which is obtained by invoking |
36 * by invoking the {@link #name} method. Furthermore, a Transport |
36 * the {@link #name} method. Furthermore, a Transport encapsulates a |
37 * encapsulates a {@link com.sun.jdi.connect.spi.TransportService |
37 * {@link TransportService TransportService} which is the underlying |
38 * TransportService} which is the underlying service used |
38 * service used to establish connections and exchange |
39 * to establish connections and exchange Java Debug Wire Protocol |
39 * Java Debug Wire Protocol (JDWP) packets with a target VM. |
40 * (JDWP) packets with a target VM. |
|
41 * |
40 * |
42 * @author Gordon Hirsch |
41 * @author Gordon Hirsch |
43 * @since 1.3 |
42 * @since 1.3 |
44 */ |
43 */ |
45 public interface Transport { |
44 public interface Transport { |
|
45 |
46 /** |
46 /** |
47 * Returns a short identifier for the transport. |
47 * Returns a short identifier for the transport. |
48 * |
48 * |
49 * @return the name of this transport. |
49 * @return the name of this transport. |
50 */ |
50 */ |