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 java.lang.Object implements UpdateCheckManager
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_PROP_SESSION_STATEManages the session state, i.e.static java.lang.StringDEFAULT_SESSION_STATE
-
Constructor Summary
Constructors Constructor Description DefaultUpdateCheckManager(TrackingFileManager trackingFileManager, UpdatePolicyAnalyzer updatePolicyAnalyzer, org.eclipse.aether.spi.io.PathProcessor pathProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckArtifact(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.artifact.Artifact,org.eclipse.aether.transfer.ArtifactTransferException> check)Checks whether an artifact has to be updated from a remote repository.voidcheckMetadata(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.metadata.Metadata,org.eclipse.aether.transfer.MetadataTransferException> check)Checks whether metadata has to be updated from a remote repository.voidtouchArtifact(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.artifact.Artifact,org.eclipse.aether.transfer.ArtifactTransferException> check)Updates the timestamp for the artifact contained in the update check.voidtouchMetadata(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.metadata.Metadata,org.eclipse.aether.transfer.MetadataTransferException> check)Updates the timestamp for the metadata contained in the update check.
-
-
-
Field Detail
-
CONFIG_PROP_SESSION_STATE
public static final java.lang.String CONFIG_PROP_SESSION_STATE
Manages 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:
- Constant Field Values
-
DEFAULT_SESSION_STATE
public static final java.lang.String DEFAULT_SESSION_STATE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultUpdateCheckManager
@Inject public DefaultUpdateCheckManager(TrackingFileManager trackingFileManager, UpdatePolicyAnalyzer updatePolicyAnalyzer, org.eclipse.aether.spi.io.PathProcessor pathProcessor)
-
-
Method Detail
-
checkArtifact
public void checkArtifact(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.artifact.Artifact,org.eclipse.aether.transfer.ArtifactTransferException> check)
Description copied from interface:UpdateCheckManagerChecks whether an artifact has to be updated from a remote repository.- Specified by:
checkArtifactin interfaceUpdateCheckManager- Parameters:
session- The repository system session during which the request is made, must not benull.check- The update check request, must not benull.
-
checkMetadata
public void checkMetadata(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.metadata.Metadata,org.eclipse.aether.transfer.MetadataTransferException> check)
Description copied from interface:UpdateCheckManagerChecks whether metadata has to be updated from a remote repository.- Specified by:
checkMetadatain interfaceUpdateCheckManager- Parameters:
session- The repository system session during which the request is made, must not benull.check- The update check request, must not benull.
-
touchArtifact
public void touchArtifact(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.artifact.Artifact,org.eclipse.aether.transfer.ArtifactTransferException> check)
Description copied from interface:UpdateCheckManagerUpdates the timestamp for the artifact contained in the update check.- Specified by:
touchArtifactin interfaceUpdateCheckManager- Parameters:
session- The repository system session during which the request is made, must not benull.check- The update check request, must not benull.
-
touchMetadata
public void touchMetadata(org.eclipse.aether.RepositorySystemSession session, UpdateCheck<org.eclipse.aether.metadata.Metadata,org.eclipse.aether.transfer.MetadataTransferException> check)
Description copied from interface:UpdateCheckManagerUpdates the timestamp for the metadata contained in the update check.- Specified by:
touchMetadatain interfaceUpdateCheckManager- Parameters:
session- The repository system session during which the request is made, must not benull.check- The update check request, must not benull.
-
-