code: 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());
      }
docs: Check if the current host scan has been stopped
  @return true if the process has been stopped