java.lang.Object | |
↳ | com.sun.tools.jdi.GenericListeningConnector |
Known Direct Subclasses |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Initialize a new instance of this connector.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Waits for a target VM to attach to this connector.
| |||||||||||
Create an instance of this Connector.
| |||||||||||
Returns the arguments accepted by this Connector and their
default values.
| |||||||||||
Returns a human-readable description of this connector
and its purpose.
| |||||||||||
Returns a short identifier for the connector.
| |||||||||||
Listens for one or more connections initiated by target VMs.
| |||||||||||
Cancels listening for connections.
| |||||||||||
Indicates whether this listening connector supports multiple
connections for a single argument map.
| |||||||||||
Returns a string representation of the object.
| |||||||||||
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.Connector
| |||||||||||
From interface
com.sun.jdi.connect.ListeningConnector
|
Initialize a new instance of this connector. This constructor is used when sub-classing - the resulting connector will a "timeout" connector argument.
Waits for a target VM to attach to this connector.
Create an instance of this Connector. The resulting ListeningConnector will have "address" and "timeout" connector arguments.
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 a human-readable description of this connector and its purpose.
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.
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.
Cancels listening for connections. The given argument map should match
the argument map given for a previous startListening(Map
invocation.
Indicates whether this listening connector supports multiple
connections for a single argument map. If so, a call to
startListening(Map
may allow
multiple target VM to become connected.
true
if multiple connections are supported;
false
otherwise.
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 the transport mechanism used by this connector to establish connections with a target VM.
Transport
used by this connector.