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 Object
implements RepositoryConnector

A connector for file://-URLs.

Author:
Benjamin Hanzelmann

Nested Class Summary
protected static class ParallelRepositoryConnector.RepositoryConnectorThreadFactory
           
 
Field Summary
protected static 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(Collection<? extends ArtifactDownload> artifactDownloads, Collection<? extends MetadataDownload> metadataDownloads)
          Performs the specified downloads.
protected  void initExecutor()
           
protected  void initExecutor(boolean forceInit)
           
 void put(Collection<? extends ArtifactUpload> artifactUploads, Collection<? extends MetadataUpload> metadataUploads)
          Performs the specified uploads.
 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 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(Collection<? extends ArtifactDownload> artifactDownloads,
                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(Collection<? extends ArtifactUpload> artifactUploads,
                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 String toString()
Overrides:
toString in class Object

initExecutor

protected void initExecutor()

initExecutor

protected void initExecutor(boolean forceInit)

close

public void close()

checkClosed

protected void checkClosed()


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.