org.hudsonci.maven.plugin.artifactrecorder.internal
Class DigestCollector

java.lang.Object
  extended by org.hudsonci.maven.plugin.artifactrecorder.internal.DigestCollector
All Implemented Interfaces:
Serializable

public class DigestCollector
extends Object
implements Serializable

Collect ArtifactDTO digests.

Since:
2.1.0
Author:
Jamie Whitehouse
See Also:
Serialized Form

Constructor Summary
DigestCollector(AbstractBuild build, Set<ArtifactDTO> artifacts)
          Creates a collector for the build and corresponding list of artifacts from that build.
 
Method Summary
 List<DigestRecord> collect()
          The caller should check for null digests and take appropriate action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigestCollector

public DigestCollector(AbstractBuild build,
                       Set<ArtifactDTO> artifacts)
Creates a collector for the build and corresponding list of artifacts from that build. The artifact list can be a subset of all the artifacts from the build.

Parameters:
build - to determine what node to find artifacts at
artifacts - the artifacts to collect digests for
Method Detail

collect

public List<DigestRecord> collect()
                           throws IOException,
                                  InterruptedException
The caller should check for null digests and take appropriate action.

Returns:
a Map of ArtifactDTO to calculated digests in String form.
Throws:
IOException
InterruptedException


Copyright © 2004-2011 Hudson. All Rights Reserved.