public Double getProgress ( ) { if ( state . equals ( ParallelTaskState . IN_PROGRESS ) ) { if ( requestNum != 0 ) { return 100.0 * ( ( double ) responsedNum / ( double ) requestNumActual ) ; } else { return 0.0 ; } } if ( state . equals ( ParallelTaskState . WAITING ) ) { return 0.0 ; } // fix task if fail validation, still try to poll progress 0901 if ( state . equals ( ParallelTaskState . COMPLETED_WITH_ERROR ) || state . equals ( ParallelTaskState . COMPLETED_WITHOUT_ERROR ) ) { return 100.0 ; } return 0.0 ; }
Gets the progress .