public class FileRepositoryConnector extends Object implements RepositoryConnector
Modifier and Type | Class and Description |
---|---|
protected static class |
ParallelRepositoryConnector.RepositoryConnectorThreadFactory |
Modifier and Type | Field and Description |
---|---|
protected Executor |
executor
The executor to use.
|
Constructor and Description |
---|
FileRepositoryConnector(RepositorySystemSession session,
RemoteRepository repository,
FileProcessor fileProcessor,
Logger logger) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkClosed() |
void |
close() |
void |
get(Collection<? extends ArtifactDownload> artifactDownloads,
Collection<? extends MetadataDownload> metadataDownloads)
Performs the specified downloads.
|
protected void |
initExecutor(Map<String,Object> config) |
void |
put(Collection<? extends ArtifactUpload> artifactUploads,
Collection<? extends MetadataUpload> metadataUploads)
Performs the specified uploads.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
protected Executor executor
#initExecutor()
public FileRepositoryConnector(RepositorySystemSession session, RemoteRepository repository, FileProcessor fileProcessor, Logger logger) throws NoRepositoryConnectorException
NoRepositoryConnectorException
public void get(Collection<? extends ArtifactDownload> artifactDownloads, Collection<? extends MetadataDownload> metadataDownloads)
RepositoryConnector
ArtifactTransfer.getException()
and MetadataTransfer.getException()
, respectively. The connector
may perform the transfers concurrently and in any order.get
in interface RepositoryConnector
artifactDownloads
- The artifact downloads to perform, may be null
or empty.metadataDownloads
- The metadata downloads to perform, may be null
or empty.public void put(Collection<? extends ArtifactUpload> artifactUploads, Collection<? extends MetadataUpload> metadataUploads)
RepositoryConnector
ArtifactTransfer.getException()
and MetadataTransfer.getException()
, respectively. The connector
may perform the transfers concurrently and in any order.put
in interface RepositoryConnector
artifactUploads
- The artifact uploads to perform, may be null
or empty.metadataUploads
- The metadata uploads to perform, may be null
or empty.public void close()
protected void checkClosed()
Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.