net.sf.ehcache.management.resource.services
Class CachesResourceServiceImplV2
java.lang.Object
net.sf.ehcache.management.resource.services.CachesResourceServiceImplV2
@Path(value="/v2/agents/cacheManagers/caches")
public final class CachesResourceServiceImplV2
- extends Object
A resource service for interacting with ehcache caches via the CacheEntityV2.
- Author:
- brandony
|
Method Summary |
void |
createOrUpdateCache(javax.ws.rs.core.UriInfo info,
CacheEntityV2 resource)
Create or update a cache with the name specified in the request path, for a specific agent and cache manager. |
org.terracotta.management.resource.ResponseEntityV2 |
getCaches(javax.ws.rs.core.UriInfo info)
Get a Collection of CacheEntityV2 objects representing the cache information provided by the
associated monitorable entity's agent given the request path. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATTR_QUERY_KEY
public static final String ATTR_QUERY_KEY
- See Also:
- Constant Field Values
CachesResourceServiceImplV2
public CachesResourceServiceImplV2()
getCaches
@GET
@Produces(value="application/json")
public org.terracotta.management.resource.ResponseEntityV2 getCaches(@Context
javax.ws.rs.core.UriInfo info)
Get a Collection of CacheEntityV2 objects representing the cache information provided by the
associated monitorable entity's agent given the request path.
- Parameters:
info - UriInfo for this resource request
- Returns:
- a collection of
CacheEntityV2 objects when successful.
createOrUpdateCache
@PUT
@Consumes(value="application/json")
public void createOrUpdateCache(@Context
javax.ws.rs.core.UriInfo info,
CacheEntityV2 resource)
Create or update a cache with the name specified in the request path, for a specific agent and cache manager. The
request path that does not identify a unique cache resource for creation or identifies a cache that already exists
will constitute a bad request and will be denied, resulting in a response with a 400 and 409 respectively.
- Parameters:
info - UriInfo for this resource requestresource - CacheEntity resource for update or creation
Copyright © 2003-2015 Terracotta, Inc.. All Rights Reserved.