Class DefaultUpdateCheckManager

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkArtifact​(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.
      void checkMetadata​(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.
      void touchArtifact​(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.
      void touchMetadata​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • 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: UpdateCheckManager
        Checks whether an artifact has to be updated from a remote repository.
        Specified by:
        checkArtifact in 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.
      • 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: UpdateCheckManager
        Checks whether metadata has to be updated from a remote repository.
        Specified by:
        checkMetadata in 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.
      • 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: UpdateCheckManager
        Updates the timestamp for the artifact contained in the update check.
        Specified by:
        touchArtifact in 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.
      • 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: UpdateCheckManager
        Updates the timestamp for the metadata contained in the update check.
        Specified by:
        touchMetadata in 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.