private static NodeCondition getNodeReadyCondition ( Node node ) { Utils . checkNotNull ( node , "Node can't be null." ) ; if ( node . getStatus ( ) == null || node . getStatus ( ) . getConditions ( ) == null ) { return null ; } for ( NodeCondition condition : node . getStatus ( ) . getConditions ( ) ) { if ( NODE_READY . equals ( condition . getType ( ) ) ) { return condition ; } } return null ; }
Returns the ready condition of the node .