public boolean isStop ( ) { if ( this . scannerParam . getMaxScanDurationInMins ( ) > 0 ) { if ( System . currentTimeMillis ( ) - this . hostProcessStartTime > TimeUnit . MINUTES . toMillis ( this . scannerParam . getMaxScanDurationInMins ( ) ) ) { this . stopReason = Constant . messages . getString ( "ascan.progress.label.skipped.reason.maxScan" ) ; this . stop ( ) ; } } return ( isStop || parentScanner . isStop ( ) ) ; }
Check if the current host scan has been stopped