net.sf.ehcache.management.resource.services
Class CacheManagersResourceServiceImplV2

java.lang.Object
  extended by net.sf.ehcache.management.resource.services.CacheManagersResourceServiceImplV2

@Path(value="/v2/agents/cacheManagers")
public final class CacheManagersResourceServiceImplV2
extends Object

An implementation of CacheManagersResourceService.

Author:
brandony

Field Summary
static String ATTR_QUERY_KEY
           
 
Constructor Summary
CacheManagersResourceServiceImplV2()
           
 
Method Summary
 org.terracotta.management.resource.ResponseEntityV2 getCacheManagers(javax.ws.rs.core.UriInfo info)
           Get a Collection of CacheManagerEntityV2 objects representing the cache manager information provided by the associated monitorable entity's agent given the request path.
 void updateCacheManager(javax.ws.rs.core.UriInfo info, CacheManagerEntityV2 resource)
          Update a cache manager with the name specified in the request path, for a specific agent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_QUERY_KEY

public static final String ATTR_QUERY_KEY
See Also:
Constant Field Values
Constructor Detail

CacheManagersResourceServiceImplV2

public CacheManagersResourceServiceImplV2()
Method Detail

getCacheManagers

@GET
@Produces(value="application/json")
public org.terracotta.management.resource.ResponseEntityV2 getCacheManagers(@Context
                                                                                         javax.ws.rs.core.UriInfo info)

Get a Collection of CacheManagerEntityV2 objects representing the cache manager information provided by the associated monitorable entity's agent given the request path.

Parameters:
{@link - UriInfo} for this resource request
Returns:
a collection of CacheManagerEntityV2 objects when successful.

updateCacheManager

@PUT
@Consumes(value="application/json")
public void updateCacheManager(@Context
                                            javax.ws.rs.core.UriInfo info,
                                            CacheManagerEntityV2 resource)
Update a cache manager with the name specified in the request path, for a specific agent. The request path that does not identify a unique cache manager resource for update will constitute a bad request and will be denied, resulting in a response with a 400.

Parameters:
info - UriInfo for this resource request
resource - CacheEntity resource for update or creation


Copyright © 2003-2015 Terracotta, Inc.. All Rights Reserved.