org.apache.ivy.core.event.retrieve

Class EndRetrieveEvent

public class EndRetrieveEvent extends RetrieveEvent

Field Summary
static StringNAME
Constructor Summary
EndRetrieveEvent(ModuleRevisionId mrid, String[] confs, long elapsedTime, int targetsCopied, int targetsUpToDate, long totalCopiedSize, RetrieveOptions options)
Method Summary
longgetDuration()
Duration of the retrieve operation, in ms.
intgetNbCopied()
Number of artifacts which were copied (or symlinked) during the retrieve
intgetNbUpToDate()
Number of artifacts which were not copied since they were already present and up to date.
longgetTotalCopiedSize()
Total size of all copied (or symlinked) artifacts, in bytes.

Field Detail

NAME

public static final String NAME

Constructor Detail

EndRetrieveEvent

public EndRetrieveEvent(ModuleRevisionId mrid, String[] confs, long elapsedTime, int targetsCopied, int targetsUpToDate, long totalCopiedSize, RetrieveOptions options)

Method Detail

getDuration

public long getDuration()
Duration of the retrieve operation, in ms.

Returns: Duration of the retrieve operation, in ms.

getNbCopied

public int getNbCopied()
Number of artifacts which were copied (or symlinked) during the retrieve

Returns: Number of artifacts which were copied during the retrieve.

getNbUpToDate

public int getNbUpToDate()
Number of artifacts which were not copied since they were already present and up to date.

Returns: Number of artifacts which were not copied since they were already present and up to date.

getTotalCopiedSize

public long getTotalCopiedSize()
Total size of all copied (or symlinked) artifacts, in bytes.

Returns: Total size of all copied (or symlinked) artifacts, in bytes.