public class NexusCache extends RepositoryManager
| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_STRING_SEPARATOR |
protected org.gcube.common.core.utils.logging.GCUBELog |
logger |
cacheEnabled, servers, SERVICE_ARCHIVE_IDENTIFIER| Modifier and Type | Method and Description |
|---|---|
String |
buildGCubeCoordinatesCacheInputString(Coordinates coordinates,
String extension,
String classifier)
Build a cache input string
|
String |
buildMavenCoordinatesCacheInputString(Coordinates coordinates,
String extension,
String classifier)
Build a cache input string
|
String |
extractDepsFromMavenEmb(String url) |
String |
get(Object mavenC,
String extension,
String classifier)
Return the URL for download a maven object (pom, tar.gz, jar) that corresponds to the maven coordinates in input
|
static NexusCache |
getInstance(String[] mavenServerList) |
String |
getSALocation(File tmpTargetDirectory,
List<MavenCoordinates> mcList,
Coordinates coordinates)
Get location of software archive
|
void |
put(Object key,
Object value)
Put a new element in the cache
|
void |
remove(String cacheElement) |
String |
searchArtifact(String baseUrl,
String groupName,
String artifact,
String extension,
String ver,
boolean pom,
String classifier)
Get location artifact
|
protected final org.gcube.common.core.utils.logging.GCUBELog logger
public static final String CACHE_STRING_SEPARATOR
public static NexusCache getInstance(String[] mavenServerList)
public String get(Object mavenC, String extension, String classifier) throws MalformedURLException, ServiceNotAvaiableFault
RepositoryManagerget in class RepositoryManagerMalformedURLExceptionServiceNotAvaiableFaultpublic String extractDepsFromMavenEmb(String url) throws ServiceNotAvaiableFault
extractDepsFromMavenEmb in class RepositoryManagerurl - the url of the remote pomBadCoordinatesExceptionServiceNotAvaiableFaultpublic String searchArtifact(String baseUrl, String groupName, String artifact, String extension, String ver, boolean pom, String classifier) throws MalformedURLException
RepositoryManagersearchArtifact in class RepositoryManagerMalformedURLExceptionpublic void put(Object key, Object value)
key - value - public void remove(String cacheElement)
public String getSALocation(File tmpTargetDirectory, List<MavenCoordinates> mcList, Coordinates coordinates) throws MalformedURLException, ServiceNotAvaiableFault, IOException, Exception
RepositoryManagergetSALocation in class RepositoryManagerMalformedURLExceptionServiceNotAvaiableFaultIOExceptionExceptionpublic String buildGCubeCoordinatesCacheInputString(Coordinates coordinates, String extension, String classifier)
coordinates - public String buildMavenCoordinatesCacheInputString(Coordinates coordinates, String extension, String classifier)
coordinates - Copyright © 2015. All Rights Reserved.