org.apache.ivy.core.event.retrieve
Class EndRetrieveEvent
java.lang.Object
org.apache.ivy.core.event.IvyEvent
org.apache.ivy.core.event.retrieve.RetrieveEvent
org.apache.ivy.core.event.retrieve.EndRetrieveEvent
public class EndRetrieveEvent
- extends RetrieveEvent
Field Summary |
static java.lang.String |
NAME
|
Method Summary |
long |
getDuration()
Duration of the retrieve operation, in ms. |
int |
getNbCopied()
Number of artifacts which were copied (or symlinked) during the retrieve |
int |
getNbUpToDate()
Number of artifacts which were not copied since they were already present and up to date. |
long |
getTotalCopiedSize()
Total size of all copied (or symlinked) artifacts, in bytes. |
Methods inherited from class org.apache.ivy.core.event.IvyEvent |
addAttribute, addAttributes, addConfsAttribute, addMDAttributes, addModuleIdAttributes, addMridAttributes, equals, getAttributes, getName, getSource, hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
EndRetrieveEvent
public EndRetrieveEvent(ModuleRevisionId mrid,
java.lang.String[] confs,
long elapsedTime,
int targetsCopied,
int targetsUpToDate,
long totalCopiedSize,
RetrieveOptions options)
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.