java.lang.Object | |
↳ | com.sun.tools.jdi.VirtualMachineManagerImpl |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a connector to the list of known connectors.
| |||||||||||
Returns the list of all known
Connector objects. | |||||||||||
Returns the list of known
AttachingConnector objects. | |||||||||||
Lists all target VMs which are connected to the debugger.
| |||||||||||
Creates a new virtual machine.
| |||||||||||
Create a virtual machine mirror for a target VM.
| |||||||||||
Identifies the default connector.
| |||||||||||
Returns the list of known
LaunchingConnector objects. | |||||||||||
Returns the list of known
ListeningConnector objects. | |||||||||||
Returns the major version number of the JDI interface.
| |||||||||||
Returns the minor version number of the JDI interface.
| |||||||||||
Removes a connector from the list of known connectors.
| |||||||||||
Replaces the default connector.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Adds a connector to the list of known connectors.
connector | the connector to be added |
---|
Returns the list of known AttachingConnector
objects.
Any of the returned objects can be used to attach to an existing target
VM and create a VirtualMachine
mirror for it.
AttachingConnector
objects.
Lists all target VMs which are connected to the debugger.
The list includes VirtualMachine
instances for
any target VMs which initiated a connection
and any
target VMs to which this manager has initiated a connection.
A target VM will remain in this list
until the VM is disconnected.
VMDisconnectEvent
is placed in the event queue
after the VM is removed from the list.
VirtualMachine
objects, each mirroring
a target VM.
Creates a new virtual machine.
This convenience method works as if by invoking createVirtualMachine(Connection, Process)
method and
specifying null as the process argument.
This method exists so that Connectors may create a virtual machine mirror when a connection is established to a target VM. Only developers creating new Connector implementations should need to make direct use of this method.
IOException |
---|
Create a virtual machine mirror for a target VM.
Creates a virtual machine mirror for a target VM
for which a Connection
already exists. A Connection is created when a Connector
establishes
a connection and successfully handshakes with a target VM.
A Connector can then use this method to create a virtual machine
mirror to represent the composite state of the target VM.
The process argument specifies the
Process
object for the taget VM. It may be
specified as null. If the target VM is launched
by a LaunchingConnector
the process argument should be
specified, otherwise calling process()
on the created virtual machine will return null.
This method exists so that Connectors may create a virtual machine mirror when a connection is established to a target VM. Only developers creating new Connector implementations should need to make direct use of this method.
connection | The open connection to the target VM. |
---|---|
process | If launched, the Process object for
the target VM. null if not launched. |
IOException |
---|
Identifies the default connector. This connector should be used as the launching connector when selection of a connector with specific characteristics is unnecessary.
LaunchingConnector
Returns the list of known LaunchingConnector
objects.
Any of the returned objects can be used to launch a new target
VM and immediately create a VirtualMachine
mirror for it.
Note that a target VM launched by a launching connector is not
guaranteed to be stable until after the VMStartEvent
has been
received.
LaunchingConnector
objects.
Returns the list of known ListeningConnector
objects.
Any of the returned objects can be used to listen for a
connection initiated by a target VM
and create a VirtualMachine
mirror for it.
ListeningConnector
objects.
Returns the major version number of the JDI interface.
See version()
target VM version and
information and
description()
more version information.
Returns the minor version number of the JDI interface.
See version()
target VM version and
information and
description()
more version information.
Removes a connector from the list of known connectors.
connector | the connector to be removed |
---|
Replaces the default connector.
connector | the new default connector |
---|
LaunchingConnector