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

public Class SocketListeningConnector

extends GenericListeningConnector
Class Inheritance
Imports
java.io.IOException, java.util.Map, com.sun.jdi.connect.Connector, .IllegalConnectorArgumentsException, .Transport, com.sun.jdi.connect.spi.TransportService

Field Summary

Modifier and TypeField and Description
pack-priv static final String
pack-priv static final String
Inherited from com.sun.tools.jdi.GenericListeningConnector:
ARG_ADDRESSARG_TIMEOUTlistenMaptransporttransportService

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
description()

Overrides com.sun.tools.jdi.GenericListeningConnector.description.

Implements com.sun.jdi.connect.Connector.description.

Returns a human-readable description of this connector and its purpose.

private boolean
public String
name()

Overrides com.sun.tools.jdi.GenericListeningConnector.name.

Implements com.sun.jdi.connect.Connector.name.

Returns a short identifier for the connector.

public String
startListening(Map<String, ? extends Connector.Argument> args)

Overrides com.sun.tools.jdi.GenericListeningConnector.startListening.

Implements com.sun.jdi.connect.ListeningConnector.startListening.

Listens for one or more connections initiated by target VMs.

protected void
Inherited from com.sun.tools.jdi.GenericListeningConnector:
acceptcreatestartListeningstopListeningsupportsMultipleConnectionstransport

Field Detail

ARG_LOCALADDRback to summary
pack-priv static final String ARG_LOCALADDR
ARG_PORTback to summary
pack-priv static final String ARG_PORT

Constructor Detail

SocketListeningConnectorback to summary
public SocketListeningConnector()

Method Detail

descriptionback to summary
public String description()

Overrides com.sun.tools.jdi.GenericListeningConnector.description.

Implements com.sun.jdi.connect.Connector.description.

Doc from com.sun.jdi.connect.Connector.description.

Returns a human-readable description of this connector and its purpose.

isWildcardPortback to summary
private boolean isWildcardPort(Map<String, ? extends Connector.Argument> args)
nameback to summary
public String name()

Overrides com.sun.tools.jdi.GenericListeningConnector.name.

Implements com.sun.jdi.connect.Connector.name.

Doc from com.sun.jdi.connect.Connector.name.

Returns a short identifier for the connector. Connector implementors should follow similar naming conventions as are used with packages to avoid name collisions. For example, the Sun connector implementations have names prefixed with "com.sun.jdi.". Not intended for exposure to end-user.

startListeningback to summary
public String startListening(Map<String, ? extends Connector.Argument> args) throws IOException, IllegalConnectorArgumentsException

Overrides com.sun.tools.jdi.GenericListeningConnector.startListening.

Implements com.sun.jdi.connect.ListeningConnector.startListening.

Doc from com.sun.jdi.connect.ListeningConnector.startListening.

Listens for one or more connections initiated by target VMs. The connector uses the given argument map in determining the address at which to listen or else it generates an appropriate listen address. In either case, an address string is returned from this method which can be used in starting target VMs to identify this connector. The format of the address string is connector, transport, and, possibly, platform dependent.

The argument map associates argument name strings to instances of Connector.Argument. The default argument map for a connector can be obtained through Connector#defaultArguments. Argument map values can be changed, but map entries should not be added or deleted.

This method does not return a VirtualMachine, and, normally, returns before any target VM initiates a connection. The connected target is obtained through accept (using the same argument map as is passed to this method).

If arguments contains addressing information and only one connection will be accepted, the accept method can be called immediately without calling this method.

Exceptions
IOException:
when unable to start listening. Specific exceptions are dependent on the Connector implementation in use.
IllegalConnectorArgumentsException:
when one of the connector arguments is invalid.
updateArgumentMapIfRequiredback to summary
protected void updateArgumentMapIfRequired(Map<String, ? extends Connector.Argument> args, TransportService.ListenKey listener)

Overrides com.sun.tools.jdi.GenericListeningConnector.updateArgumentMapIfRequired.

Annotations
@Override