DeviceMonitor멀티플렉서

public class DeviceMonitorMultiplexer
extends Object implements IDeviceMonitor

java.lang.Object
com.android.tradefed.device.DeviceMonitorMultiplexer


여러 IDeviceMonitor 에 요청을 전파하는 프록시 클래스입니다.

요약

공개 생성자

DeviceMonitorMultiplexer ()

공개 메소드

void addMonitor ( IDeviceMonitor globalDeviceMonitor)
void addMonitors ( globalDeviceMonitors) addMonitors ( globalDeviceMonitors)
void notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState)

장치 상태가 변경되었음을 IDeviceMonitor 에 알립니다.

void removeMonitor ( IDeviceMonitor mon)
void run ()

모니터의 @Option 필드가 모두 설정된 후에 호출될 메서드입니다.

void setDeviceLister ( IDeviceMonitor.DeviceLister lister)

DeviceLister 설정할 수 있습니다.

void stop ()

모니터를 중지해야 할 때 호출되는 메서드입니다.

공개 생성자

DeviceMonitor멀티플렉서

public DeviceMonitorMultiplexer ()

공개 메소드

추가모니터

public void addMonitor (IDeviceMonitor globalDeviceMonitor)

매개변수
globalDeviceMonitor IDeviceMonitor

모니터 추가

public void addMonitors ( globalDeviceMonitors)

매개변수
globalDeviceMonitors

통지장치상태변경

public void notifyDeviceStateChange (String serial, 
                DeviceAllocationState oldState, 
                DeviceAllocationState newState)

장치 상태가 변경되었음을 IDeviceMonitor 에 알립니다. 모니터 구현은 이 메서드에서 수행하는 처리 및 IDeviceManager/DeviceLister 상호 작용의 양을 제한해야 합니다.

매개변수
serial String

oldState DeviceAllocationState

newState DeviceAllocationState

제거모니터

public void removeMonitor (IDeviceMonitor mon)

매개변수
mon IDeviceMonitor

달리다

public void run ()

모니터의 @Option 필드가 모두 설정된 후에 호출될 메서드입니다.

setDeviceLister

public void setDeviceLister (IDeviceMonitor.DeviceLister lister)

DeviceLister 설정할 수 있습니다. Lister 설정 시도가 성공한 후 구현에서는 모든 후속 시도를 삭제할 수 있습니다.

매개변수
lister IDeviceMonitor.DeviceLister

멈추다

public void stop ()

모니터를 중지해야 할 때 호출되는 메서드입니다.