void kill ( ) { assert ( this . dag . getStatus ( ) == Status . KILLING ) ; if ( this . status == Status . READY || this . status == Status . BLOCKED ) { // If the node is disabled, keep the status as disabled. changeStatus ( Status . CANCELED ) ; } else if ( this . status == Status . RUNNING ) { changeStatus ( Status . KILLING ) ; } // If the node has finished, leave the status intact. }
Kills a node .