APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.tools.jdi

public Class SocketTransportService

extends TransportService
Class Inheritance
Imports
java.io.IOException, java.net.Inet6Address, .InetAddress, .InetSocketAddress, .ServerSocket, .Socket, .SocketTimeoutException, .UnknownHostException, java.util.ResourceBundle, com.sun.jdi.connect.TransportTimeoutException, com.sun.jdi.connect.spi.Connection, .TransportService

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
pack-priv static class
SocketTransportService.SocketListenKey

The listener returned by startListening encapsulates the ServerSocket.

Field Summary

Modifier and TypeField and Description
private ResourceBundle

Constructor Summary

AccessConstructor and Description
public
SocketTransportService()

No-arg constructor

Method Summary

Modifier and TypeMethod and Description
public Connection
accept(TransportService.ListenKey listener, long acceptTimeout, long handshakeTimeout)

Implements abstract com.sun.jdi.connect.spi.TransportService.accept.

Accept a connection from a debuggee and handshake with it.

public Connection
attach(String address, long attachTimeout, long handshakeTimeout)

Implements abstract com.sun.jdi.connect.spi.TransportService.attach.

Attach to the specified address with optional attach and handshake timeout.

public TransportService.Capabilities
capabilities()

Implements abstract com.sun.jdi.connect.spi.TransportService.capabilities.

Return the capabilities of this transport service

public String
description()

Implements abstract com.sun.jdi.connect.spi.TransportService.description.

Return localized description of this transport service

pack-priv void
handshake(Socket s, long timeout)

Handshake with the debuggee

public String
name()

Implements abstract com.sun.jdi.connect.spi.TransportService.name.

The name of this transport service

pack-priv TransportService.ListenKey
startListening(String localaddress, int port)

public TransportService.ListenKey
startListening(String address)

Implements abstract com.sun.jdi.connect.spi.TransportService.startListening.

Listen on the specified address

public TransportService.ListenKey
startListening()

Implements abstract com.sun.jdi.connect.spi.TransportService.startListening.

Listen on the default address

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Field Detail

messagesback to summary
private ResourceBundle messages

Constructor Detail

SocketTransportServiceback to summary
public SocketTransportService()

No-arg constructor

Method Detail

acceptback to summary
public Connection accept(TransportService.ListenKey listener, long acceptTimeout, long handshakeTimeout) throws IOException

Implements abstract com.sun.jdi.connect.spi.TransportService.accept.

Accept a connection from a debuggee and handshake with it.

Exceptions
IOException:

Doc from com.sun.jdi.connect.spi.TransportService.accept.

If an I/O error occurs (including a timeout when handshaking).

attachback to summary
public Connection attach(String address, long attachTimeout, long handshakeTimeout) throws IOException

Implements abstract com.sun.jdi.connect.spi.TransportService.attach.

Attach to the specified address with optional attach and handshake timeout.

Exceptions
IOException:

Doc from com.sun.jdi.connect.spi.TransportService.attach.

If an I/O error occurs (including a timeout when handshaking).

capabilitiesback to summary
public TransportService.Capabilities capabilities()

Implements abstract com.sun.jdi.connect.spi.TransportService.capabilities.

Return the capabilities of this transport service

descriptionback to summary
public String description()

Implements abstract com.sun.jdi.connect.spi.TransportService.description.

Return localized description of this transport service

handshakeback to summary
pack-priv void handshake(Socket s, long timeout) throws IOException

Handshake with the debuggee

nameback to summary
public String name()

Implements abstract com.sun.jdi.connect.spi.TransportService.name.

The name of this transport service

startListeningback to summary
pack-priv TransportService.ListenKey startListening(String localaddress, int port) throws IOException
startListeningback to summary
public TransportService.ListenKey startListening(String address) throws IOException

Implements abstract com.sun.jdi.connect.spi.TransportService.startListening.

Listen on the specified address

Exceptions
IOException:

Doc from com.sun.jdi.connect.spi.TransportService.startListening.

If an I/O error occurs.

startListeningback to summary
public TransportService.ListenKey startListening() throws IOException

Implements abstract com.sun.jdi.connect.spi.TransportService.startListening.

Listen on the default address

Exceptions
IOException:

Doc from com.sun.jdi.connect.spi.TransportService.startListening.

If an I/O error occurs.

stopListeningback to summary
public void stopListening(TransportService.ListenKey listener) throws IOException

Implements abstract com.sun.jdi.connect.spi.TransportService.stopListening.

Stop the listener

Exceptions
IOException:

Doc from com.sun.jdi.connect.spi.TransportService.stopListening.

If an I/O error occurs.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

com.sun.tools.jdi back to summary

private Class SocketTransportService.HostPort

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public final String
public final int

Constructor Summary

AccessConstructor and Description
private
HostPort(String host, int port)

Method Summary

Modifier and TypeMethod and Description
public static SocketTransportService.HostPort
parse(String hostPort)

Creates an instance for given URN, which can be either <port> or <host>:<port>.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hostback to summary
public final String host
portback to summary
public final int port

Constructor Detail

HostPortback to summary
private HostPort(String host, int port)

Method Detail

parseback to summary
public static SocketTransportService.HostPort parse(String hostPort)

Creates an instance for given URN, which can be either or :. If host is '*', the returned HostPort instance has host set to null. If host is a literal IPv6 address, it may be in square brackets.

com.sun.tools.jdi back to summary

pack-priv Class SocketTransportService.SocketListenKey

extends ListenKey
Class Inheritance

The listener returned by startListening encapsulates the ServerSocket.

Field Summary

Modifier and TypeField and Description
pack-priv ServerSocket

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
address()

Implements abstract com.sun.jdi.connect.spi.TransportService.ListenKey.address.

Returns a string representation of the listen key.

pack-priv ServerSocket
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Field Detail

ssback to summary
pack-priv ServerSocket ss

Constructor Detail

SocketListenKeyback to summary
pack-priv SocketListenKey(ServerSocket ss)

Method Detail

addressback to summary
public String address()

Implements abstract com.sun.jdi.connect.spi.TransportService.ListenKey.address.

Doc from com.sun.jdi.connect.spi.TransportService.ListenKey.address.

Returns a string representation of the listen key.

socketback to summary
pack-priv ServerSocket socket()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.