Home
last modified time | relevance | path

Searched refs:powerunit_info (Results 1 – 4 of 4) sorted by relevance

/external/autotest/site_utils/rpm_control_system/
Drpm_controller.py255 def queue_request(self, powerunit_info, new_state): argument
268 request['powerunit_info'] = powerunit_info
473 def set_power_state(self, powerunit_info, new_state): argument
497 powerunit_info.device_hostname)
498 result = self._change_state(powerunit_info, self.NEW_STATE_OFF, ssh)
502 result = self._change_state(powerunit_info, self.NEW_STATE_ON, ssh)
505 result = self._change_state(powerunit_info, new_state, ssh)
513 def _change_state(self, powerunit_info, new_state, ssh): argument
529 outlet = powerunit_info.outlet
530 device_hostname = powerunit_info.device_hostname
[all …]
Drpm_controller_unittest.py25 self.powerunit_info = utils.PowerUnitInfo(
43 self.assertFalse(self.rpm.queue_request(self.powerunit_info, new_state))
57 self.powerunit_info = utils.PowerUnitInfo(
73 self.ssh.sendline('%s %s' % (new_state, self.powerunit_info.outlet))
79 self.powerunit_info, new_state))
91 self.ssh.sendline('%s %s' % (new_state, self.powerunit_info.outlet))
97 self.assertFalse(self.rpm.set_power_state(self.powerunit_info, new_state))
116 self.powerunit_info = utils.PowerUnitInfo(
132 self.powerunit_info, 'OFF'))
144 self.powerunit_info, 'OFF'))
[all …]
Drpm_dispatcher.py128 powerunit_info = utils.PowerUnitInfo(**powerunit_info_dict)
130 powerunit_info.device_hostname, new_state)
132 powerunit_info.powerunit_hostname,
133 powerunit_info.hydra_hostname)
134 return rpm_controller.queue_request(powerunit_info, new_state)
Dfrontend_server.py126 powerunit_info = self._get_powerunit_info(device_hostname)
127 dispatcher_uri = self._get_dispatcher(powerunit_info)
134 return client.queue_request(powerunit_info, new_state)
236 def _get_dispatcher(self, powerunit_info): argument
249 powerunit_type = powerunit_info.powerunit_type
250 powerunit_hostname = powerunit_info.powerunit_hostname