public class ArtifactManagerConfig extends Object implements ArtifactProviderContext
Constructor and Description |
---|
ArtifactManagerConfig()
Create a new configuration object.
|
Modifier and Type | Method and Description |
---|---|
long |
getCachedArtifacts()
Get the number of cached artifacts
|
File |
getCacheDirectory()
Get the cache directory
|
long |
getDownloadedArtifacts()
Get the number of downloaded artifacts
|
long |
getLocalArtifacts()
Get the number of local artifacts
|
String[] |
getRepositoryUrls()
Get the repository urls.
|
void |
incCachedArtifacts()
Inform about an artifact found in the cache.
|
void |
incDownloadedArtifacts()
Inform about an artifact being downloaded
|
void |
incLocalArtifacts()
Inform about an artifact found locally.
|
void |
setCacheDirectory(File dir)
Set the cache directory
|
void |
setRepositoryUrls(String[] urls)
Set the repository urls
|
public ArtifactManagerConfig()
public void setRepositoryUrls(String[] urls)
urls
- The repository urlspublic String[] getRepositoryUrls()
public File getCacheDirectory()
getCacheDirectory
in interface ArtifactProviderContext
public void setCacheDirectory(File dir)
dir
- The cache directorypublic void incCachedArtifacts()
ArtifactProviderContext
incCachedArtifacts
in interface ArtifactProviderContext
public void incDownloadedArtifacts()
ArtifactProviderContext
incDownloadedArtifacts
in interface ArtifactProviderContext
public void incLocalArtifacts()
ArtifactProviderContext
incLocalArtifacts
in interface ArtifactProviderContext
public long getCachedArtifacts()
public long getDownloadedArtifacts()
public long getLocalArtifacts()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.