jetbrains.buildServer.serverSide
Interface DownloadedArtifactsLogger


public interface DownloadedArtifactsLogger

Tracks downloaded artifacts.


Method Summary
 boolean buildArtifactsWereDownloaded(long sourceBuildId)
           
 DownloadedArtifacts getDownloadedArtifacts(long downloadedBy)
          Returns list of artifacts downloaded by build with specified build id
 DownloadedArtifacts getProvidedArtifacts(long downloadedFrom)
          Returns list of artifacts provided by the build with specified id to other builds
 void logArtifactDownload(long downloadedBy, long downloadedFrom, java.lang.String artifactPath)
          Logs artifact download action into the database.
 

Method Detail

logArtifactDownload

void logArtifactDownload(long downloadedBy,
                         long downloadedFrom,
                         java.lang.String artifactPath)
Logs artifact download action into the database.

Parameters:
downloadedBy - id of a build which initiated artifact download
downloadedFrom - id of a build from which the artifact was downloaded
artifactPath - path to a artifact

getDownloadedArtifacts

DownloadedArtifacts getDownloadedArtifacts(long downloadedBy)
Returns list of artifacts downloaded by build with specified build id

Parameters:
downloadedBy - id of the build
Returns:
list of downloaded artifacts

getProvidedArtifacts

DownloadedArtifacts getProvidedArtifacts(long downloadedFrom)
Returns list of artifacts provided by the build with specified id to other builds

Parameters:
downloadedFrom - id of the build - artifacts provider
Returns:
see above

buildArtifactsWereDownloaded

boolean buildArtifactsWereDownloaded(long sourceBuildId)
Parameters:
sourceBuildId - id of the build which provided artifacts
Returns:
true if there are builds which downloaded artifacts from the build with specified id.