public AggregationOptions setDiscoveryConfig( final DiscoveryConfig dc ) { this.dc = dc; this.discoverySource = dc.getDiscoverySource(); this.discoveryEnabled = dc.isEnabled(); this.discoveryTimeoutMillis = dc.getTimeoutMillis(); return this; }
public AggregationOptions setDiscoveryConfig( final DiscoveryConfig dc ) { this.dc = dc; this.discoverySource = dc.getDiscoverySource(); this.discoveryEnabled = dc.isEnabled(); this.discoveryTimeoutMillis = dc.getTimeoutMillis(); return this; }
private void setLocation( final DiscoveryConfig discoveryConfig ) { synchronized ( discoveryConfig ) { if ( discoveryConfig.getLocations() == null ) { final StoreKey key = AproxDepgraphUtils.getDiscoveryStore( discoveryConfig.getDiscoverySource() ); ArtifactStore store = null; try { store = storeManager.getArtifactStore( key ); } catch ( final AproxDataException e ) { logger.error( String.format( "Failed to lookup ArtifactStore for key: {}. Reason: {}", key, e.getMessage() ), e ); } if ( store != null ) { final Location location = LocationUtils.toLocation( store ); discoveryConfig.setLocations( Collections.singletonList( location ) ); } } } }
public DiscoveryConfig( final DiscoveryConfig discoveryConfig ) { Collection<String> enabledPatchers = discoveryConfig.getEnabledPatchers(); if ( enabledPatchers == null ) { enabledPatchers = new HashSet<String>(); } else { enabledPatchers = new HashSet<String>( enabledPatchers ); } this.patchers = enabledPatchers; this.enabled = discoveryConfig.isEnabled(); this.timeoutMillis = discoveryConfig.getTimeoutMillis(); this.discoverySource = discoveryConfig.getDiscoverySource(); this.discoveryLocations = discoveryConfig.getLocations(); this.storeRelationships = discoveryConfig.isStoreRelationships(); this.includeBuildSection = discoveryConfig.isIncludeBuildSection(); this.includeManagedDependencies = discoveryConfig.isIncludeManagedDependencies(); this.includeManagedPlugins = discoveryConfig.isIncludeManagedPlugins(); }
public DiscoveryConfig( final DiscoveryConfig discoveryConfig ) { Collection<String> enabledPatchers = discoveryConfig.getEnabledPatchers(); if ( enabledPatchers == null ) { enabledPatchers = new HashSet<String>(); } else { enabledPatchers = new HashSet<String>( enabledPatchers ); } this.patchers = enabledPatchers; this.enabled = discoveryConfig.isEnabled(); this.timeoutMillis = discoveryConfig.getTimeoutMillis(); this.discoverySource = discoveryConfig.getDiscoverySource(); this.discoveryLocations = discoveryConfig.getLocations(); this.storeRelationships = discoveryConfig.isStoreRelationships(); this.includeBuildSection = discoveryConfig.isIncludeBuildSection(); this.includeManagedDependencies = discoveryConfig.isIncludeManagedDependencies(); this.includeManagedPlugins = discoveryConfig.isIncludeManagedPlugins(); }
locations = sourceManager.createLocations( config.getDiscoverySource() ); throw new CartoRequestException( "Failed to create locations for discovery source: %s. Reason: %s", e, config.getDiscoverySource(), e.getMessage() );
locations = sourceManager.createLocations( config.getDiscoverySource() ); throw new CartoRequestException( "Failed to create locations for discovery source: %s. Reason: %s", e, config.getDiscoverySource(), e.getMessage() );
modelProcessor.readRelationships( pomView, discoveryConfig.getDiscoverySource(), discoveryConfig.getProcessorConfig() ); result = new DiscoveryResult( discoveryConfig.getDiscoverySource(), specific, rels.getExactAllRelationships() );
if ( pomView != null ) result = modelProcessor.readRelationships( pomView, discoveryConfig.getDiscoverySource(), discoveryConfig );