Package org.eclipse.aether.internal.impl
Class DefaultUpdateCheckManager
java.lang.Object
org.eclipse.aether.internal.impl.DefaultUpdateCheckManager
- All Implemented Interfaces:
- UpdateCheckManager
@Singleton
@Named
public class DefaultUpdateCheckManager
extends Object
implements UpdateCheckManager
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultUpdateCheckManager(TrackingFileManager trackingFileManager, UpdatePolicyAnalyzer updatePolicyAnalyzer, PathProcessor pathProcessor) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidcheckArtifact(RepositorySystemSession session, UpdateCheck<Artifact, ArtifactTransferException> check) Checks whether an artifact has to be updated from a remote repository.voidcheckMetadata(RepositorySystemSession session, UpdateCheck<Metadata, MetadataTransferException> check) Checks whether metadata has to be updated from a remote repository.voidtouchArtifact(RepositorySystemSession session, UpdateCheck<Artifact, ArtifactTransferException> check) Updates the timestamp for the artifact contained in the update check.voidtouchMetadata(RepositorySystemSession session, UpdateCheck<Metadata, MetadataTransferException> check) Updates the timestamp for the metadata contained in the update check.
- 
Field Details- 
CONFIG_PROP_SESSION_STATEManages the session state, i.e. influences if the same download requests to artifacts/metadata will happen multiple times within the same RepositorySystemSession. If "enabled" will enable the session state. If "bypass" will enable bypassing (i.e. store all artifact ids/metadata ids which have been updates but not evaluating those). All other values lead to disabling the session state completely.- See Also:
- Sourced from:
- RepositorySystemSession.getConfigProperties()
- Value type:
- String
- Default value:
- DEFAULT_SESSION_STATE
 
- 
DEFAULT_SESSION_STATE- See Also:
 
 
- 
- 
Constructor Details- 
DefaultUpdateCheckManager@Inject public DefaultUpdateCheckManager(TrackingFileManager trackingFileManager, UpdatePolicyAnalyzer updatePolicyAnalyzer, PathProcessor pathProcessor) 
 
- 
- 
Method Details- 
checkArtifactpublic void checkArtifact(RepositorySystemSession session, UpdateCheck<Artifact, ArtifactTransferException> check) Description copied from interface:UpdateCheckManagerChecks whether an artifact has to be updated from a remote repository.- Specified by:
- checkArtifactin interface- UpdateCheckManager
- Parameters:
- session- The repository system session during which the request is made, must not be- null.
- check- The update check request, must not be- null.
 
- 
checkMetadatapublic void checkMetadata(RepositorySystemSession session, UpdateCheck<Metadata, MetadataTransferException> check) Description copied from interface:UpdateCheckManagerChecks whether metadata has to be updated from a remote repository.- Specified by:
- checkMetadatain interface- UpdateCheckManager
- Parameters:
- session- The repository system session during which the request is made, must not be- null.
- check- The update check request, must not be- null.
 
- 
touchArtifactpublic void touchArtifact(RepositorySystemSession session, UpdateCheck<Artifact, ArtifactTransferException> check) Description copied from interface:UpdateCheckManagerUpdates the timestamp for the artifact contained in the update check.- Specified by:
- touchArtifactin interface- UpdateCheckManager
- Parameters:
- session- The repository system session during which the request is made, must not be- null.
- check- The update check request, must not be- null.
 
- 
touchMetadatapublic void touchMetadata(RepositorySystemSession session, UpdateCheck<Metadata, MetadataTransferException> check) Description copied from interface:UpdateCheckManagerUpdates the timestamp for the metadata contained in the update check.- Specified by:
- touchMetadatain interface- UpdateCheckManager
- Parameters:
- session- The repository system session during which the request is made, must not be- null.
- check- The update check request, must not be- null.
 
 
-