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 ArtifactProviderContextpublic void setCacheDirectory(File dir)
dir - The cache directorypublic void incCachedArtifacts()
ArtifactProviderContextincCachedArtifacts in interface ArtifactProviderContextpublic void incDownloadedArtifacts()
ArtifactProviderContextincDownloadedArtifacts in interface ArtifactProviderContextpublic void incLocalArtifacts()
ArtifactProviderContextincLocalArtifacts in interface ArtifactProviderContextpublic long getCachedArtifacts()
public long getDownloadedArtifacts()
public long getLocalArtifacts()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.