ClusterDeviceMonitor
public class ClusterDeviceMonitor
extends Object
implements IDeviceMonitor
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterDeviceMonitor |
一个IDeviceMonitor
实现,可将结果报告给Tradefed Cluster服务。
概要
公共建设者 | |
---|---|
ClusterDeviceMonitor () |
公开方法 | |
---|---|
void | notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState) |
void | run () 设置所有Monitor的@Option字段后将调用的方法。 |
void | setDeviceLister ( IDeviceMonitor.DeviceLister lister) 允许设置 |
void | stop () 需要停止Monitor时将调用的方法。 |
公共建设者
ClusterDeviceMonitor
public ClusterDeviceMonitor ()
公开方法
notifyDeviceStateChange
public void notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
IDeviceMonitor
设备状态已更改。监视器实现应限制它们在此方法中进行的处理量和IDeviceManager / DeviceLister交互。
参量 | |
---|---|
serial | String |
oldState | DeviceAllocationState |
newState | DeviceAllocationState |
跑
public void run ()
设置所有Monitor的@Option字段后将调用的方法。
setDeviceLister
第0352章
允许设置DeviceLister
。成功尝试设置Lister后,实现可能会丢弃所有后续尝试。
参量 | |
---|---|
lister | IDeviceMonitor.DeviceLister |
停
public void stop ()
需要停止Monitor时将调用的方法。