Package com.xebialabs.xlrelease.api.v1
Interface CacheManagementApi
@Path("/api/v1/caches")
@Consumes("application/json")
@Produces("application/json")
public interface CacheManagementApi
Operations on caches
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears all caches.voidclearCacheGroup(String cacheGroup) Clears all caches for the particular cache group.getCacheStatistics(String cacheGroup) Fetches cache statistics for the particular cache group.Lists available cache groups.
-
Method Details
-
listCacheGroups
Lists available cache groups.- Returns:
- list of cache groups
-
clearAllCacheGroups
@DELETE @Path("/groups") void clearAllCacheGroups()Clears all caches. -
clearCacheGroup
@DELETE @Path("/groups/{cacheGroup}") void clearCacheGroup(@PathParam("cacheGroup") String cacheGroup) Clears all caches for the particular cache group.- Parameters:
cacheGroup- the cache group to clear
-
getCacheStatistics
@GET @Path("/groups/{cacheGroup}/statistics") Map<String,Map<String, getCacheStatisticsString>> (@PathParam("cacheGroup") String cacheGroup) Fetches cache statistics for the particular cache group.- Parameters:
cacheGroup- the cache group to fetch statistics for- Returns:
- cache statistics
-