public static Scheduler . SchedulerResponse constructSchedulerResponse ( boolean isOK ) { Common . Status . Builder status = Common . Status . newBuilder ( ) ; if ( isOK ) { status . setStatus ( Common . StatusCode . OK ) ; } else { status . setStatus ( Common . StatusCode . NOTOK ) ; } return Scheduler . SchedulerResponse . newBuilder ( ) . setStatus ( status ) . build ( ) ; }
construct heron scheduler response basing on the given result