|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.vremanagement.softwaregateway.impl.repositorymanager.RepositoryManager
org.gcube.vremanagement.softwaregateway.impl.repositorymanager.cache.NexusCache
public class NexusCache
| Field Summary | |
|---|---|
static String |
CACHE_STRING_SEPARATOR
|
protected org.gcube.common.core.utils.logging.GCUBELog |
logger
|
| Fields inherited from class org.gcube.vremanagement.softwaregateway.impl.repositorymanager.RepositoryManager |
|---|
cacheEnabled, servers, SERVICE_ARCHIVE_IDENTIFIER |
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.gcube.common.core.utils.logging.GCUBELog logger
public static final String CACHE_STRING_SEPARATOR
| Method Detail |
|---|
public static NexusCache getInstance(String[] mavenServerList)
public String get(Object mavenC,
String extension,
String classifier)
throws MalformedURLException,
ServiceNotAvaiableFault
RepositoryManager
get in class RepositoryManagerMalformedURLException
ServiceNotAvaiableFault
public String extractDepsFromMavenEmb(String url)
throws ServiceNotAvaiableFault
extractDepsFromMavenEmb in class RepositoryManagerurl - the url of the remote pom
BadCoordinatesException
ServiceNotAvaiableFault
public String searchArtifact(String baseUrl,
String groupName,
String artifact,
String extension,
String ver,
boolean pom,
String classifier)
throws MalformedURLException
RepositoryManager
searchArtifact in class RepositoryManagerMalformedURLException
public 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
RepositoryManager
getSALocation in class RepositoryManagerMalformedURLException
ServiceNotAvaiableFault
IOException
Exception
public String buildGCubeCoordinatesCacheInputString(Coordinates coordinates,
String extension,
String classifier)
coordinates -
public String buildMavenCoordinatesCacheInputString(Coordinates coordinates,
String extension,
String classifier)
coordinates -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||