public final class AttachingDICookie extends AbstractDICookie
DebuggerInfo di = DebuggerInfo.create ( "My Attaching First Debugger Info", new Object [] { AttachingDICookie.create ( "localhost", 1234 ) } ); DebuggerManager.getDebuggerManager ().startDebugging (di);
Modifier and Type | Field and Description |
---|---|
static String |
ID
Public ID used for registration in Meta-inf/debugger.
|
Modifier and Type | Method and Description |
---|---|
static AttachingDICookie |
create(com.sun.jdi.connect.AttachingConnector attachingConnector,
Map<String,? extends com.sun.jdi.connect.Connector.Argument> args)
Creates a new instance of AttachingDICookie for given parameters.
|
static AttachingDICookie |
create(String name)
Creates a new instance of AttachingDICookie for given parameters.
|
static AttachingDICookie |
create(String hostName,
int portNumber)
Creates a new instance of AttachingDICookie for given parameters.
|
Map<String,? extends com.sun.jdi.connect.Connector.Argument> |
getArgs()
Returns map of arguments.
|
com.sun.jdi.connect.AttachingConnector |
getAttachingConnector()
Returns instance of AttachingDICookie.
|
String |
getHostName()
Returns name of computer.
|
int |
getPortNumber()
Returns port number.
|
String |
getProcessID()
Returns process ID.
|
String |
getSharedMemoryName()
Returns shared memory block name.
|
com.sun.jdi.VirtualMachine |
getVirtualMachine()
Creates a new instance of VirtualMachine for this DebuggerInfo Cookie.
|
public static final String ID
public static AttachingDICookie create(com.sun.jdi.connect.AttachingConnector attachingConnector, Map<String,? extends com.sun.jdi.connect.Connector.Argument> args)
attachingConnector
- a connector to be usedargs
- map of argumentspublic static AttachingDICookie create(String hostName, int portNumber)
hostName
- a name of computer to attach toportNumber
- a potr numberpublic static AttachingDICookie create(String name)
name
- a name of shared memory blockpublic com.sun.jdi.connect.AttachingConnector getAttachingConnector()
public Map<String,? extends com.sun.jdi.connect.Connector.Argument> getArgs()
public int getPortNumber()
public String getHostName()
public String getSharedMemoryName()
public String getProcessID()
public com.sun.jdi.VirtualMachine getVirtualMachine() throws IOException, com.sun.jdi.connect.IllegalConnectorArgumentsException
getVirtualMachine
in class AbstractDICookie
IOException
- when unable to attach.com.sun.jdi.connect.IllegalConnectorArgumentsException
- when some connector argument is invalid.ConnectException
- When a connection is refused