Constructor | Description |
---|---|
JdiInitiator(int port,
List<String> remoteVMOptions,
String remoteAgent,
boolean isLaunch,
String host,
int timeout,
Map<String,String> customConnectorArgs) |
Start the remote agent and establish a JDI connection to it.
|
Modifier and Type | Method | Description |
---|---|---|
Process |
process() |
Returns the launched process.
|
com.sun.jdi.VirtualMachine |
vm() |
Returns the resulting
VirtualMachine instance. |
public JdiInitiator(int port, List<String> remoteVMOptions, String remoteAgent, boolean isLaunch, String host, int timeout, Map<String,String> customConnectorArgs)
port
- the socket port for (non-JDI) commandsremoteVMOptions
- any user requested VM command-line optionsremoteAgent
- full class name of remote agent to launchisLaunch
- does JDI do the launch? That is, LaunchingConnector,
otherwise we start explicitly and use ListeningConnectorhost
- explicit hostname to use, if null use discovered
hostname, applies to listening only (!isLaunch)timeout
- the start-up time-out in milliseconds. If zero or negative,
will not wait thus will timeout immediately if not already started.customConnectorArgs
- custom arguments passed to the connector.
These are JDI com.sun.jdi.connect.Connector arguments.public com.sun.jdi.VirtualMachine vm()
VirtualMachine
instance.public Process process()
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2015, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b161-1