public class DebugPortManager
extends java.lang.Object
DebugPortManager.IDebugPortProvider
to ddmlib.
When Client
objects are created, they start listening for debuggers on a specific
port. The default behavior is to start with DdmPreferences.getDebugPortBase()
and
increment this value for each new Client
.
This DebugPortManager
allows applications using ddmlib to provide a custom
port provider on a per-Client
basis, depending on the device/emulator they are
running on, and/or their names.
Modifier and Type | Class and Description |
---|---|
static interface |
DebugPortManager.IDebugPortProvider
Classes which implement this interface provide a method that provides a non random
debugger port for a newly created
Client . |
Constructor and Description |
---|
DebugPortManager() |
Modifier and Type | Method and Description |
---|---|
static void |
setProvider(DebugPortManager.IDebugPortProvider provider)
Sets the
DebugPortManager.IDebugPortProvider that will be used when a new Client requests
a debugger port. |
public static void setProvider(DebugPortManager.IDebugPortProvider provider)
DebugPortManager.IDebugPortProvider
that will be used when a new Client
requests
a debugger port.provider
- the IDebugPortProvider
to use.