public class

GenericAttachingConnector

extends Object
implements AttachingConnector Connector
java.lang.Object
   ↳ com.sun.tools.jdi.GenericAttachingConnector
Known Direct Subclasses

Summary

Protected Constructors
GenericAttachingConnector(TransportService ts)
Initializes a new instance of this connector.
Public Methods
VirtualMachine attach(String address, Map args)
Attach to a target VM using the specified address and Connector arguments.
VirtualMachine attach(Map<String, ? extends Connector.Argument> args)
Attach to a target VM using the specified arguments - the address of the target VM is specified by the address connector argument.
static GenericAttachingConnector create(TransportService ts)
Map<StringConnector.Argument> defaultArguments()
Returns the arguments accepted by this Connector and their default values.
String description()
Returns a human-readable description of this connector and its purpose.
String name()
Returns a short identifier for the connector.
String toString()
Returns a string representation of the object.
Transport transport()
Returns the transport mechanism used by this connector to establish connections with a target VM.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.sun.jdi.connect.AttachingConnector
From interface com.sun.jdi.connect.Connector

Protected Constructors

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.

Public Methods

public VirtualMachine attach (String address, Map args)

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

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

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

Parameters
args the argument map to be used in launching the VM.
Returns

public static GenericAttachingConnector create (TransportService ts)

public Map<StringConnector.Argument> defaultArguments ()

Returns the arguments accepted by this Connector and their default values. The keys of the returned map are string argument names. The values are Connector.Argument containing information about the argument and its default value.

Returns
  • the map associating argument names with argument information and default value.

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 toString ()

Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
  • a string representation of the object.

public Transport transport ()

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

Returns