org.sonatype.aether.connector.file
Class FileRepositoryConnector

java.lang.Object
  extended by 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

Nested Class Summary
protected static class ParallelRepositoryConnector.RepositoryConnectorThreadFactory
           
 
Field Summary
protected static java.util.concurrent.ThreadPoolExecutor executor
          The executor to use.
 
Constructor Summary
FileRepositoryConnector(RepositorySystemSession session, RemoteRepository repository, FileProcessor fileProcessor, Logger logger)
           
 
Method Summary
protected  void checkClosed()
           
 void close()
           
 void get(java.util.Collection<? extends ArtifactDownload> artifactDownloads, java.util.Collection<? extends MetadataDownload> metadataDownloads)
          Performs the specified downloads.
protected  void initExecutor()
           
protected  void initExecutor(boolean forceInit)
           
 void put(java.util.Collection<? extends ArtifactUpload> artifactUploads, java.util.Collection<? extends MetadataUpload> metadataUploads)
          Performs the specified uploads.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sonatype.aether.spi.connector.RepositoryConnector
close
 

Field Detail

executor

protected static java.util.concurrent.ThreadPoolExecutor executor
The executor to use.

See Also:
initExecutor()
Constructor Detail

FileRepositoryConnector

public FileRepositoryConnector(RepositorySystemSession session,
                               RemoteRepository repository,
                               FileProcessor fileProcessor,
                               Logger logger)
                        throws NoRepositoryConnectorException
Throws:
NoRepositoryConnectorException
Method Detail

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.