#NEWLINE# @ task_manager . require_exclusive_lock #NEWLINE# def set_power_state( self , task , power_state ) : #NEWLINE# #INDENT# "Set the power state of the task's node.\n\n        :param task: a TaskManager instance containing the node to act on.\n        :param power_state: Any power state from :mod:`ironic.common.states`.\n        :raises: InvalidParameterValue if an invalid power state was specified.\n        :raises: MissingParameterValue if some mandatory information\n            is missing on the node\n        :raises: IRMCOperationError if failed to set the power state.\n        " #NEWLINE# _set_power_state ( self , power_state )