ClientTracker

public interface ClientTracker

com.android.tradefed.device.server.ClientTracker


Tracks device clients

Summary

Public methods

abstract void trackClientToDropAndReopen(ClientImpl client)

Callback for indicating that a client was dropped but an attempt should be made to reopen the connection with the client.

abstract void trackDeviceToDropAndReopen(DeviceImpl device)

Callback to indicate that a device was dropped.

abstract void trackDisconnectedClient(ClientImpl client)

Callback for when a client is disconnected.

Public methods

trackClientToDropAndReopen

public abstract void trackClientToDropAndReopen (ClientImpl client)

Callback for indicating that a client was dropped but an attempt should be made to reopen the connection with the client.

Parameters
client ClientImpl: that was dropped.

trackDeviceToDropAndReopen

public abstract void trackDeviceToDropAndReopen (DeviceImpl device)

Callback to indicate that a device was dropped. An attempt should be made to reopen the connection with the device and reestablish connection with any of the clients running on that device.

Parameters
device DeviceImpl: that was dropped.

trackDisconnectedClient

public abstract void trackDisconnectedClient (ClientImpl client)

Callback for when a client is disconnected. This callback is meant to notify any threads that hold a registration to a clients socket to release it.

Parameters
client ClientImpl: that was dropped