Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

ClusterDeviceMonitor

public class ClusterDeviceMonitor
extends Object implements IDeviceMonitor

java.lang.Object
   ↳ com.android.tradefed.cluster.ClusterDeviceMonitor


An IDeviceMonitor implementation that reports results to the Tradefed Cluster service.

Summary

Public constructors

ClusterDeviceMonitor()

Public methods

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

Signals the IDeviceMonitor that a device state has been changed.

void run()

A method that will be called after all of the Monitor's @Option fields have been set.

void setDeviceLister(IDeviceMonitor.DeviceLister lister)

Allows the DeviceLister to be set.

void stop()

A method that will be called when the Monitor need to be stopped.

Public constructors

ClusterDeviceMonitor

public ClusterDeviceMonitor ()

Public methods

notifyDeviceStateChange

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

Signals the IDeviceMonitor that a device state has been changed. Monitor implementations should limit the amount of processing and IDeviceManager/DeviceLister interaction they do in this method.

Parameters
serial String

oldState DeviceAllocationState

newState DeviceAllocationState

run

public void run ()

A method that will be called after all of the Monitor's @Option fields have been set.

setDeviceLister

public void setDeviceLister (IDeviceMonitor.DeviceLister lister)

Allows the DeviceLister to be set. After a successful attempt to set the Lister, implementations may discard all subsequent attempts.

Parameters
lister IDeviceMonitor.DeviceLister

stop

public void stop ()

A method that will be called when the Monitor need to be stopped.