|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ivy.plugins.lock.AbstractLockStrategy
org.apache.ivy.plugins.lock.FileBasedLockStrategy
org.apache.ivy.plugins.lock.ArtifactLockStrategy
public abstract class ArtifactLockStrategy
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.ivy.plugins.lock.FileBasedLockStrategy |
---|
FileBasedLockStrategy.CreateFileLocker, FileBasedLockStrategy.FileLocker, FileBasedLockStrategy.NIOFileLocker |
Constructor Summary | |
---|---|
protected |
ArtifactLockStrategy(FileBasedLockStrategy.FileLocker locker,
boolean debugLocking)
|
Method Summary | |
---|---|
boolean |
lockArtifact(Artifact artifact,
java.io.File artifactFileToDownload)
Performs a lock before downloading the given Artifact to the given file. |
void |
unlockArtifact(Artifact artifact,
java.io.File artifactFileToDownload)
Release the lock acquired for an artifact download. |
Methods inherited from class org.apache.ivy.plugins.lock.FileBasedLockStrategy |
---|
acquireLock, getCurrentLockHolderNames, releaseLock |
Methods inherited from class org.apache.ivy.plugins.lock.AbstractLockStrategy |
---|
getName, isDebugLocking, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ArtifactLockStrategy(FileBasedLockStrategy.FileLocker locker, boolean debugLocking)
Method Detail |
---|
public boolean lockArtifact(Artifact artifact, java.io.File artifactFileToDownload) throws java.lang.InterruptedException
LockStrategy
Artifact
to the given file.
artifact
- the artifact about to be downloadedartifactFileToDownload
- the file where the artifact will be downloaded
java.lang.InterruptedException
- if the thread is interrupted while waiting to acquire the lockpublic void unlockArtifact(Artifact artifact, java.io.File artifactFileToDownload)
LockStrategy
artifact
- the artifact for which the lock was acquiredartifactFileToDownload
- the file where the artifact is supposed to have been downloaded
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |