public boolean isStopped ( ) { if ( ! stopped && this . spiderParam . getMaxDuration ( ) > 0 ) { // Check to see if the scan has exceeded the specified maxDuration if ( TimeUnit . MILLISECONDS . toMinutes ( System . currentTimeMillis ( ) - this . timeStarted ) > this . spiderParam . getMaxDuration ( ) ) { log . info ( "Spidering process has exceeded maxDuration of " + this . spiderParam . getMaxDuration ( ) + " minute(s)" ) ; this . complete ( ) ; } } return stopped ; }
Checks if is stopped i . e . a shutdown was issued or it is not running .