public class SocketAttachConnector extends java.lang.Object implements IVMConnector
| Constructor and Description |
|---|
SocketAttachConnector() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
abort(java.lang.String message,
java.lang.Throwable exception,
int code)
Throws a core exception with an error status object built from
the given message, lower level exception, and error code.
|
void |
connect(java.util.Map<java.lang.String,java.lang.String> arguments,
IProgressMonitor monitor,
ILaunch launch)
Establishes a JDI connection with a debuggable VM using the arguments
specified in the given map, contributing results (debug targets and processes),
to the given launch.
|
protected java.lang.String |
constructVMLabel(VirtualMachine vm,
java.lang.String host,
java.lang.String port,
ILaunchConfiguration configuration)
Helper method that constructs a human-readable label for a remote VM.
|
java.util.List<java.lang.String> |
getArgumentOrder()
Returns a list of argument names found in this connector's
default argument map, defining the order in which arguments
should be presented to the user.
|
protected static AttachingConnector |
getAttachingConnector()
Return the socket transport attaching connector
|
java.util.Map<java.lang.String,Connector.Argument> |
getDefaultArguments()
Returns a map of default arguments used by this connector.
|
java.lang.String |
getIdentifier()
Returns a unique identifier for this kind of connector.
|
java.lang.String |
getName()
Returns the name of this connector.
|
protected static AttachingConnector getAttachingConnector()
throws CoreException
AttachingConnectorCoreException - if unable to locate the connectorpublic java.lang.String getIdentifier()
IVMConnectorgetIdentifier in interface IVMConnectorIVMConnector.getIdentifier()public java.lang.String getName()
IVMConnectorgetName in interface IVMConnectorIVMConnector.getName()protected static void abort(java.lang.String message,
java.lang.Throwable exception,
int code)
throws CoreException
message - the status messageexception - lower level exception associated with the
error, or null if nonecode - error codeCoreException - if an error occurspublic void connect(java.util.Map<java.lang.String,java.lang.String> arguments,
IProgressMonitor monitor,
ILaunch launch)
throws CoreException
IVMConnectorconnect in interface IVMConnectorarguments - Argument map to use in establishing a connection. The keys of
the map are strings corresponding to the names of arguments returned by this
connector's getDefaultAgruments() method. The values of the map
are strings corresponding to the (String) values of the associated
com.sun.jdi.connect.Connector.Arguments to use.monitor - progress monitorlaunch - launch to contribute debug target(s) and/or process(es) toCoreException - if unable to establish a connection with the target VMprotected java.lang.String constructVMLabel(VirtualMachine vm,
java.lang.String host,
java.lang.String port,
ILaunchConfiguration configuration)
vm - the VMhost - the host nameport - the port numberconfiguration - the backing configurationpublic java.util.Map<java.lang.String,Connector.Argument> getDefaultArguments()
throws CoreException
IVMConnectorcom.sun.jdi.connect.Connector.Argument.getDefaultArguments in interface IVMConnectorCoreException - if unable to retrieve a default argument mappublic java.util.List<java.lang.String> getArgumentOrder()
IVMConnectorgetArgumentOrder in interface IVMConnector