FileDocCategorySizeDatePackage
DebugPortManager.javaAPI DocAndroid 1.5 API2644Wed May 06 22:41:08 BST 2009com.android.ddmlib

DebugPortManager

public class DebugPortManager extends Object
Centralized point to provide a {@link IDebugPortProvider} to ddmlib.

When {@link Client} objects are created, they start listening for debuggers on a specific port. The default behavior is to start with {@link DdmPreferences#getDebugPortBase()} and increment this value for each new Client.

This {@link 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.

Fields Summary
private static IDebugPortProvider
sProvider
Constructors Summary
Methods Summary
static com.android.ddmlib.DebugPortManager$IDebugPortProvidergetProvider()
Returns the

return

        return sProvider;
    
public static voidsetProvider(com.android.ddmlib.DebugPortManager$IDebugPortProvider provider)
Sets the {@link IDebugPortProvider} that will be used when a new {@link Client} requests a debugger port.

param
provider the IDebugPortProvider to use.


                                
         
        sProvider = provider;