private <T extends DiscoveredSystemObject>boolean isDataCollectionScanJobSchedulingNeeded(long lastScanTime,boolean inProgress){
  long systemTime=System.currentTimeMillis();
  long refreshInterval=getRefreshInterval(ControllerServiceImpl.SCANNER);
  if (inProgress) {
    return false;
  }
  if (lastScanTime > 0 && (systemTime - lastScanTime < refreshInterval * 1000)) {
    _logger.info("Skipping scanner job; attempt to schedule faster than refresh interval allows");
    return false;
  }
  return true;
}

private < T extends DiscoveredSystemObject > boolean isDataCollectionScanJobSchedulingNeeded ( long lastScanTime , boolean inProgress ) { long systemTime = System . currentTimeMillis ( ) ; long refreshInterval = getRefreshInterval ( ControllerServiceImpl . SCANNER ) ; if ( inProgress ) { return false ; } if ( lastScanTime > 0 && ( systemTime - lastScanTime < refreshInterval * 1000 ) ) { _logger . info ( "Skipping scanner job; attempt to schedule faster than refresh interval allows" ) ; return false ; } return true ; }
if the job is in progress , don ' t schedule the job . if not in progress , then schedule if refresh interval is satisfied .
