net.sf.ehcache.management.service
Interface CacheService


public interface CacheService

An interface for service implementations providing operations on Cache objects.

Author:
brandony

Method Summary
 void clearCache(String cacheManagerName, String cacheName)
          Clears all the elements in the cache.
 void createOrUpdateCache(String cacheManagerName, String cacheName, CacheEntity resource)
          Create or update a cache represented by the submitted entity.
 

Method Detail

createOrUpdateCache

void createOrUpdateCache(String cacheManagerName,
                         String cacheName,
                         CacheEntity resource)
                         throws org.terracotta.management.ServiceExecutionException
Create or update a cache represented by the submitted entity.

Parameters:
cacheManagerName - the name of the CacheManager managing the Cache to be updated
cacheName - the name of the Cache to be updated
resource - the representation of the resource informing this update
Throws:
org.terracotta.management.ServiceExecutionException - if the update fails

clearCache

void clearCache(String cacheManagerName,
                String cacheName)
                throws org.terracotta.management.ServiceExecutionException
Clears all the elements in the cache.

Parameters:
cacheManagerName - the name of the CacheManager managing the Cache to be cleared
cacheName - the name of the Cache to be cleared
Throws:
org.terracotta.management.ServiceExecutionException


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