DeviceMonitorMultiplekser
public class DeviceMonitorMultiplexer
extends Object
implements IDeviceMonitor
java.lang.Obiekt | |
↳ | com.android.tradefed.device.DeviceMonitorMultiplexer |
Klasa proxy do propagowania żądań do wielu IDeviceMonitor
s.
Streszczenie
Konstruktory publiczne | |
---|---|
DeviceMonitorMultiplexer () |
Metody publiczne | |
---|---|
void | addMonitor ( IDeviceMonitor globalDeviceMonitor) |
void | addMonitors ( globalDeviceMonitors) addMonitors ( globalDeviceMonitors) |
void | notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState) Sygnalizuje |
void | removeMonitor ( IDeviceMonitor mon) |
void | run () Metoda, która zostanie wywołana po ustawieniu wszystkich pól @Option monitora. |
void | setDeviceLister ( IDeviceMonitor.DeviceLister lister) Umożliwia ustawienie |
void | stop () Metoda, która zostanie wywołana, gdy Monitor będzie musiał zostać zatrzymany. |
Konstruktory publiczne
DeviceMonitorMultiplekser
public DeviceMonitorMultiplexer ()
Metody publiczne
dodajMonitor
public void addMonitor (IDeviceMonitor globalDeviceMonitor)
Parametry | |
---|---|
globalDeviceMonitor | IDeviceMonitor |
dodajMonitory
public void addMonitors (globalDeviceMonitors)
Parametry | |
---|---|
globalDeviceMonitors |
powiadomić o zmianie stanu urządzenia
public void notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
Sygnalizuje IDeviceMonitor
, że stan urządzenia został zmieniony. Implementacje monitora powinny ograniczać ilość przetwarzania i interakcji IDeviceManager/DeviceLister, które wykonują w tej metodzie.
Parametry | |
---|---|
serial | String |
oldState | DeviceAllocationState |
newState | DeviceAllocationState |
uruchomić
public void run ()
Metoda, która zostanie wywołana po ustawieniu wszystkich pól @Option monitora.
ustaw listę urządzeń
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
Umożliwia ustawienie DeviceLister
. Po udanej próbie ustawienia Listera implementacje mogą odrzucić wszystkie kolejne próby.
Parametry | |
---|---|
lister | IDeviceMonitor.DeviceLister |
zatrzymywać się
public void stop ()
Metoda, która zostanie wywołana, gdy Monitor będzie musiał zostać zatrzymany.