public class

SocketListeningConnector

extends GenericListeningConnector
java.lang.Object
   ↳ com.sun.tools.jdi.GenericListeningConnector
     ↳ com.sun.tools.jdi.SocketListeningConnector

Summary

Public Constructors
SocketListeningConnector()
Public Methods
String description()
Returns a human-readable description of this connector and its purpose.
String name()
Returns a short identifier for the connector.
String startListening(Map<String, ? extends Connector.Argument> args)
Listens for one or more connections initiated by target VMs.
[Expand]
Inherited Methods
From class com.sun.tools.jdi.GenericListeningConnector
From class java.lang.Object
From interface com.sun.jdi.connect.Connector
From interface com.sun.jdi.connect.ListeningConnector

Public Constructors

public SocketListeningConnector ()

Public Methods

public String description ()

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

Returns
  • the description of this connector

public String 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.

Returns
  • the name of this connector.

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

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 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(Map) (using the same argument map as is passed to this method).

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

Returns
  • the address at which the connector is listening for a connection.