org.sonatype.aether.connector.file
Class FileRepositoryConnector
java.lang.Object
org.sonatype.aether.connector.file.FileRepositoryConnector
- All Implemented Interfaces:
- RepositoryConnector
public class FileRepositoryConnector
- extends java.lang.Object
- implements RepositoryConnector
A connector for file://-URLs.
- Author:
- Benjamin Hanzelmann
Field Summary |
protected static java.util.concurrent.ThreadPoolExecutor |
executor
The executor to use. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
executor
protected static java.util.concurrent.ThreadPoolExecutor executor
- The executor to use.
- See Also:
initExecutor()
FileRepositoryConnector
public FileRepositoryConnector(RepositorySystemSession session,
RemoteRepository repository,
FileProcessor fileProcessor,
Logger logger)
throws NoRepositoryConnectorException
- Throws:
NoRepositoryConnectorException
get
public void get(java.util.Collection<? extends ArtifactDownload> artifactDownloads,
java.util.Collection<? extends MetadataDownload> metadataDownloads)
- Description copied from interface:
RepositoryConnector
- Performs the specified downloads. Any error encountered during a transfer can later be queried via
ArtifactTransfer.getException()
and MetadataTransfer.getException()
, respectively. The connector
may performs the transfers concurrently and in any order.
- Specified by:
get
in interface RepositoryConnector
- Parameters:
artifactDownloads
- The artifact downloads to perform, may be null
or empty.metadataDownloads
- The metadata downloads to perform, may be null
or empty.
put
public void put(java.util.Collection<? extends ArtifactUpload> artifactUploads,
java.util.Collection<? extends MetadataUpload> metadataUploads)
- Description copied from interface:
RepositoryConnector
- Performs the specified uploads. Any error encountered during a transfer can later be queried via
ArtifactTransfer.getException()
and MetadataTransfer.getException()
, respectively. The connector
may performs the transfers concurrently and in any order.
- Specified by:
put
in interface RepositoryConnector
- Parameters:
artifactUploads
- The artifact uploads to perform, may be null
or empty.metadataUploads
- The metadata uploads to perform, may be null
or empty.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
initExecutor
protected void initExecutor()
initExecutor
protected void initExecutor(boolean forceInit)
close
public void close()
checkClosed
protected void checkClosed()
Copyright © 2010 Sonatype, Inc.. All Rights Reserved.