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/
Dfrontend_server.py122 powerunit_info = self._get_poe_powerunit_info(device_hostname)
124 return self._queue_once(powerunit_info, new_state)
159 powerunit_info = utils.PowerUnitInfo(
167 return self._queue_once(powerunit_info, new_state)
174 def _queue_once(self, powerunit_info, new_state): argument
176 dispatcher_uri = self._get_dispatcher(powerunit_info)
183 return client.queue_request(powerunit_info, new_state)
260 def _get_dispatcher(self, powerunit_info): argument
273 powerunit_type = powerunit_info.powerunit_type
274 powerunit_hostname = powerunit_info.powerunit_hostname
Drpm_controller.py252 def queue_request(self, powerunit_info, new_state): argument
265 request['powerunit_info'] = powerunit_info
470 def set_power_state(self, powerunit_info, new_state): argument
494 powerunit_info.device_hostname)
495 result = self._change_state(powerunit_info, self.NEW_STATE_OFF, ssh)
499 result = self._change_state(powerunit_info, self.NEW_STATE_ON, ssh)
502 result = self._change_state(powerunit_info, new_state, ssh)
510 def _change_state(self, powerunit_info, new_state, ssh): argument
526 outlet = powerunit_info.outlet
527 device_hostname = powerunit_info.device_hostname
[all …]
Drpm_controller_unittest.py24 self.powerunit_info = utils.PowerUnitInfo(
42 self.assertFalse(self.rpm.queue_request(self.powerunit_info, new_state))
56 self.powerunit_info = utils.PowerUnitInfo(
72 self.ssh.sendline('%s %s' % (new_state, self.powerunit_info.outlet))
78 self.powerunit_info, new_state))
90 self.ssh.sendline('%s %s' % (new_state, self.powerunit_info.outlet))
97 self.rpm.set_power_state(self.powerunit_info, new_state))
116 self.powerunit_info = utils.PowerUnitInfo(
131 self.powerunit_info, 'OFF'))
142 self.powerunit_info, 'OFF'))
[all …]
Drpm_dispatcher.py133 powerunit_info = utils.PowerUnitInfo(**powerunit_info_dict)
135 powerunit_info.device_hostname, new_state)
137 powerunit_info.powerunit_hostname,
138 powerunit_info.hydra_hostname)
139 return rpm_controller.queue_request(powerunit_info, new_state)