ClusterDeviceMonitor
public
class
ClusterDeviceMonitor
extends LabResourceDeviceMonitor
java.lang.Object | |||
↳ | com.google.dualhomelab.monitoringagent.resourcemonitoring.LabResourceServiceGrpc.LabResourceServiceImplBase | ||
↳ | com.android.tradefed.monitoring.LabResourceDeviceMonitor | ||
↳ | 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 |
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 |
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.