|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.impl.internal.DefaultUpdateCheckManager
@Component(role=UpdateCheckManager.class) public class DefaultUpdateCheckManager
| Constructor Summary | |
|---|---|
DefaultUpdateCheckManager()
|
|
DefaultUpdateCheckManager(Logger logger)
|
|
| Method Summary | |
|---|---|
void |
checkArtifact(RepositorySystemSession session,
UpdateCheck<Artifact,ArtifactTransferException> check)
Checks whether an artifact has to be updated from a remote repository. |
void |
checkMetadata(RepositorySystemSession session,
UpdateCheck<Metadata,MetadataTransferException> check)
Checks whether metadata has to be updated from a remote repository. |
java.lang.String |
getEffectiveUpdatePolicy(RepositorySystemSession session,
java.lang.String policy1,
java.lang.String policy2)
Returns the policy with the shorter update interval. |
void |
initService(ServiceLocator locator)
Provides the opportunity to initialize this service and to acquire other services for its operation from the locator. |
boolean |
isUpdatedRequired(RepositorySystemSession session,
long lastModified,
java.lang.String policy)
Determines whether the specified modification timestamp satisfies the freshness constraint expressed by the given update policy. |
DefaultUpdateCheckManager |
setLogger(Logger logger)
|
void |
touchArtifact(RepositorySystemSession session,
UpdateCheck<Artifact,ArtifactTransferException> check)
Updates the timestamp for the artifact contained in the update check. |
void |
touchMetadata(RepositorySystemSession session,
UpdateCheck<Metadata,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 |
| Constructor Detail |
|---|
public DefaultUpdateCheckManager()
public DefaultUpdateCheckManager(Logger logger)
| Method Detail |
|---|
public void initService(ServiceLocator locator)
Service
initService in interface Servicelocator - The service locator, must not be null.public DefaultUpdateCheckManager setLogger(Logger logger)
public java.lang.String getEffectiveUpdatePolicy(RepositorySystemSession session,
java.lang.String policy1,
java.lang.String policy2)
UpdateCheckManager
getEffectiveUpdatePolicy in interface UpdateCheckManagersession - The repository system session during which the request is made, must not be null.policy1 - A policy to compare, may be null.policy2 - A policy to compare, may be null.
public void checkArtifact(RepositorySystemSession session,
UpdateCheck<Artifact,ArtifactTransferException> check)
UpdateCheckManager
checkArtifact in interface UpdateCheckManagersession - The repository system session during which the request is made, must not be null.check - The update check request, must not be null.
public void checkMetadata(RepositorySystemSession session,
UpdateCheck<Metadata,MetadataTransferException> check)
UpdateCheckManager
checkMetadata in interface UpdateCheckManagersession - The repository system session during which the request is made, must not be null.check - The update check request, must not be null.
public boolean isUpdatedRequired(RepositorySystemSession session,
long lastModified,
java.lang.String policy)
UpdateCheckManager
isUpdatedRequired in interface UpdateCheckManagersession - The repository system session during which the check is made, must not be null.lastModified - The timestamp to check against the update policy.policy - The update policy, may be null.
true if the specified timestamp is older than acceptable by the update policy, false
otherwise.
public void touchArtifact(RepositorySystemSession session,
UpdateCheck<Artifact,ArtifactTransferException> check)
UpdateCheckManager
touchArtifact in interface UpdateCheckManagersession - The repository system session during which the request is made, must not be null.check - The update check request, must not be null.
public void touchMetadata(RepositorySystemSession session,
UpdateCheck<Metadata,MetadataTransferException> check)
UpdateCheckManager
touchMetadata in interface UpdateCheckManagersession - The repository system session during which the request is made, must not be null.check - The update check request, must not be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||