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

public Class GenericAttachingConnector

extends ConnectorImpl
implements AttachingConnector
Class Inheritance
All Implemented Interfaces
com.sun.jdi.connect.AttachingConnector, com.sun.jdi.connect.Connector
Known Direct Subclasses
com.sun.tools.jdi.SocketAttachingConnector
Imports
java.io.IOException, java.util.Map, com.sun.jdi.Bootstrap, .VirtualMachine, com.sun.jdi.connect.AttachingConnector, .Connector, .IllegalConnectorArgumentsException, .Transport, com.sun.jdi.connect.spi.Connection, .TransportService

Field Summary

Modifier and TypeField and Description
pack-priv static final String
pack-priv static final String
pack-priv Transport
pack-priv TransportService
Inherited from com.sun.tools.jdi.ConnectorImpl:
defaultArgumentsfalseStringtrueString

Constructor Summary

AccessConstructor and Description
private
GenericAttachingConnector(TransportService ts, boolean addAddressArgument)

protected
GenericAttachingConnector(TransportService ts)

Initializes a new instance of this connector.

Method Summary

Modifier and TypeMethod and Description
public VirtualMachine
attach(String address, Map<String, ? extends Connector.Argument> args)

Attach to a target VM using the specified address and Connector arguments.

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

Implements com.sun.jdi.connect.AttachingConnector.attach.

Attach to a target VM using the specified arguments - the address of the target VM is specified by the address connector argument.

public static GenericAttachingConnector
public String
description()

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

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

public String
name()

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

Returns a short identifier for the connector.

public Transport
transport()

Implements com.sun.jdi.connect.Connector.transport.

Returns the transport mechanism used by this connector to establish connections with a target VM.

Inherited from com.sun.tools.jdi.ConnectorImpl:
addBooleanArgumentaddIntegerArgumentaddSelectedArgumentaddStringArgumentargumentdefaultArgumentsgetStringtoString

Field Detail

ARG_ADDRESSback to summary
pack-priv static final String ARG_ADDRESS
ARG_TIMEOUTback to summary
pack-priv static final String ARG_TIMEOUT
transportback to summary
pack-priv Transport transport
transportServiceback to summary
pack-priv TransportService transportService

Constructor Detail

GenericAttachingConnectorback to summary
private GenericAttachingConnector(TransportService ts, boolean addAddressArgument)
GenericAttachingConnectorback to summary
protected GenericAttachingConnector(TransportService ts)

Initializes a new instance of this connector. This constructor is used when sub-classing - the resulting connector will have a "timeout" connector argument.

Method Detail

attachback to summary
public VirtualMachine attach(String address, Map<String, ? extends Connector.Argument> args) throws IOException, IllegalConnectorArgumentsException

Attach to a target VM using the specified address and Connector arguments.

attachback to summary
public VirtualMachine attach(Map<String, ? extends Connector.Argument> args) throws IOException, IllegalConnectorArgumentsException

Implements com.sun.jdi.connect.AttachingConnector.attach.

Attach to a target VM using the specified arguments - the address of the target VM is specified by the address connector argument.

Exceptions
IOException:

Doc from com.sun.jdi.connect.AttachingConnector.attach.

when unable to attach. Specific exceptions are dependent on the Connector implementation in use.

IllegalConnectorArgumentsException:

Doc from com.sun.jdi.connect.AttachingConnector.attach.

when one of the connector arguments is invalid.

createback to summary
public static GenericAttachingConnector create(TransportService ts)
descriptionback to summary
public String 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.

nameback to summary
public String 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.

transportback to summary
public Transport transport()

Implements com.sun.jdi.connect.Connector.transport.

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

Returns the transport mechanism used by this connector to establish connections with a target VM.