DeviceMonitorMultiplexer
public
class
DeviceMonitorMultiplexer
extends Object
implements
IDeviceMonitor
| java.lang.Object | |
| ↳ | com.android.tradefed.device.DeviceMonitorMultiplexer |
Klasa proxy do propagowania żądań do wielu IDeviceMonitor.
Podsumowanie
Konstruktory publiczne | |
|---|---|
DeviceMonitorMultiplexer()
|
|
Metody publiczne | |
|---|---|
void
|
addMonitor(IDeviceMonitor globalDeviceMonitor)
|
void
|
addMonitors(List<IDeviceMonitor> 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
DeviceMonitorMultiplexer
public DeviceMonitorMultiplexer ()
Metody publiczne
addMonitor
public void addMonitor (IDeviceMonitor globalDeviceMonitor)
| Parametry | |
|---|---|
globalDeviceMonitor |
IDeviceMonitor |
addMonitors
public void addMonitors (List<IDeviceMonitor> globalDeviceMonitors)
| Parametry | |
|---|---|
globalDeviceMonitors |
List |
notifyDeviceStateChange
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 z IDeviceManager/DeviceLister w tej metodzie.
| Parametry | |
|---|---|
serial |
String |
oldState |
DeviceAllocationState |
newState |
DeviceAllocationState |
run
public void run ()
Metoda, która zostanie wywołana po ustawieniu wszystkich pól @Option monitora.
setDeviceLister
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
Umożliwia ustawienie DeviceLister. Po pomyślnej próbie ustawienia listy,
implementacje mogą odrzucić wszystkie kolejne próby.
| Parametry | |
|---|---|
lister |
IDeviceMonitor.DeviceLister |
stop
public void stop ()
Metoda, która zostanie wywołana, gdy monitor będzie musiał zostać zatrzymany.