org.gcube.vremanagement.softwaregateway.impl.is
Class ISCache

java.lang.Object
  extended by org.gcube.vremanagement.softwaregateway.impl.is.ISManager
      extended by org.gcube.vremanagement.softwaregateway.impl.is.ISCache

public class ISCache
extends ISManager

Implements a cache System for IS service

Author:
Roberto Cirillo (ISTI - CNR)

Field Summary
static String CACHE_STRING_SEPARATOR
           
 
Fields inherited from class org.gcube.vremanagement.softwaregateway.impl.is.ISManager
cacheEnabled, logger
 
Method Summary
 String buildGCubeCoordinatesCacheInputString(Coordinates coordinates)
           
 String buildMavenCoordinatesCacheInputString(Coordinates coordinates)
           
 GCubeCoordinates getGcubeCoordinates(MavenCoordinates mavenC)
          check if the mavenC parameter is present in the cache
 List<GCubePackage> getGCubePackagesCoordinates(Coordinates coordinates)
          check if the gcubeC parameter is present in the cache
static ISCache getInstance()
           
 List<URL> getMavenConfiguration()
          Not implemented for cache
 MavenCoordinates getMavenCoordinates(Coordinates gcubeC)
          check if the gCubeC parameter is present in the cache
 List<MavenPackage> getMavenPackagesCoordinates(GCubeCoordinates gcubeC)
          check if the gcubeC parameter is present in the cache
 List<GCubePackage> getPluginCoordinates(Coordinates gcubeC)
          check if the gcubeC parameter is present in the cache
protected  void put(Coordinates key, Object value)
          Put a new element in the cache
 void remove(Coordinates coordinates)
           
 void updateProfile(String xml)
          Not implemented for cache
 
Methods inherited from class org.gcube.vremanagement.softwaregateway.impl.is.ISManager
buildServiceQuery, checkResourceOnIS, publicResourceIS, publicResourceIS, queryGCubeCoordinates, queryGCubePackagesCoordinates, queryMavenCoordinates, queryMavenPackagesCoordinates, queryPackagesCoordinates, queryPluginCoordinates, querySAMavenCoordinates, updatePackageResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CACHE_STRING_SEPARATOR

public static final String CACHE_STRING_SEPARATOR
See Also:
Constant Field Values
Method Detail

getInstance

public static ISCache getInstance()

updateProfile

public void updateProfile(String xml)
Not implemented for cache

Specified by:
updateProfile in class ISManager

getMavenConfiguration

public List<URL> getMavenConfiguration()
Not implemented for cache

Specified by:
getMavenConfiguration in class ISManager
Returns:

put

protected void put(Coordinates key,
                   Object value)
Put a new element in the cache

Parameters:
key -
value -

getMavenCoordinates

public MavenCoordinates getMavenCoordinates(Coordinates gcubeC)
                                     throws org.gcube.common.core.informationsystem.ISException
check if the gCubeC parameter is present in the cache

Specified by:
getMavenCoordinates in class ISManager
Returns:
maven coordinated if founded
Throws:
org.gcube.common.core.informationsystem.ISException

getGcubeCoordinates

public GCubeCoordinates getGcubeCoordinates(MavenCoordinates mavenC)
check if the mavenC parameter is present in the cache

Parameters:
mavenC -
Returns:

getMavenPackagesCoordinates

public List<MavenPackage> getMavenPackagesCoordinates(GCubeCoordinates gcubeC)
check if the gcubeC parameter is present in the cache

Specified by:
getMavenPackagesCoordinates in class ISManager
Parameters:
gcubeC -
Returns:
a List of mavenCoordinates if founded

getPluginCoordinates

public List<GCubePackage> getPluginCoordinates(Coordinates gcubeC)
check if the gcubeC parameter is present in the cache

Specified by:
getPluginCoordinates in class ISManager
Parameters:
gcubeC -
Returns:
a list of gCube coordinates if founded in the IS

getGCubePackagesCoordinates

public List<GCubePackage> getGCubePackagesCoordinates(Coordinates coordinates)
check if the gcubeC parameter is present in the cache

Parameters:
coordinates -
Returns:

remove

public void remove(Coordinates coordinates)

buildGCubeCoordinatesCacheInputString

public String buildGCubeCoordinatesCacheInputString(Coordinates coordinates)
Parameters:
coordinates -

buildMavenCoordinatesCacheInputString

public String buildMavenCoordinatesCacheInputString(Coordinates coordinates)
Parameters:
coordinates -


Copyright © 2013. All Rights Reserved.