net.sf.ehcache.management.service
Interface EntityResourceFactory


public interface EntityResourceFactory

A factory interface for resources related to Ehcache.

Author:
brandony

Method Summary
 Collection<CacheConfigEntity> createCacheConfigEntities(Set<String> cacheManagerNames, Set<String> cacheNames)
          A factory method for CacheConfigEntity objects.
 Collection<CacheEntity> createCacheEntities(Set<String> cacheManagerNames, Set<String> cacheNames, Set<String> attributes)
          A factory method for CacheEntity objects.
 Collection<CacheManagerConfigEntity> createCacheManagerConfigEntities(Set<String> cacheManagerNames)
          A factory method for CacheManagerConfigEntity objects.
 Collection<CacheManagerEntity> createCacheManagerEntities(Set<String> cacheManagerNames, Set<String> attributes)
          A factory method for CacheManagerEntity objects.
 Collection<CacheStatisticSampleEntity> createCacheStatisticSampleEntity(Set<String> cacheManagerNames, Set<String> cacheNames, Set<String> statNames)
          A factory method for CacheStatisticSampleEntity objects.
 

Method Detail

createCacheManagerEntities

Collection<CacheManagerEntity> createCacheManagerEntities(Set<String> cacheManagerNames,
                                                          Set<String> attributes)
                                                          throws org.terracotta.management.ServiceExecutionException
A factory method for CacheManagerEntity objects.

Parameters:
cacheManagerNames - a Set of names for the CacheManager objects to be represented by the returned resources
attributes - a Set of specific cache manager attributes to include in the returned representations; if null, all attributes will be included
Returns:
a Collection of CacheManagerEntity objects
Throws:
org.terracotta.management.ServiceExecutionException

createCacheManagerConfigEntities

Collection<CacheManagerConfigEntity> createCacheManagerConfigEntities(Set<String> cacheManagerNames)
                                                                      throws org.terracotta.management.ServiceExecutionException
A factory method for CacheManagerConfigEntity objects.

Parameters:
cacheManagerNames - a Set of names for the CacheManager configurations to be represented by the returned resources
Returns:
a Collection of CacheManagerConfigEntity objects
Throws:
org.terracotta.management.ServiceExecutionException

createCacheEntities

Collection<CacheEntity> createCacheEntities(Set<String> cacheManagerNames,
                                            Set<String> cacheNames,
                                            Set<String> attributes)
                                            throws org.terracotta.management.ServiceExecutionException
A factory method for CacheEntity objects.

Parameters:
cacheManagerNames - a Set of names for the CacheManagers that manage the Cache objects to be represented by the returned resources
cacheNames - a Set of names for the Cache objects to be represented by the returned resources
attributes - a Set of specific cache manager attributes to include in the returned representations; if null, all attributes will be included
Returns:
a Collection of CacheEntity objects
Throws:
org.terracotta.management.ServiceExecutionException

createCacheConfigEntities

Collection<CacheConfigEntity> createCacheConfigEntities(Set<String> cacheManagerNames,
                                                        Set<String> cacheNames)
                                                        throws org.terracotta.management.ServiceExecutionException
A factory method for CacheConfigEntity objects.

Parameters:
cacheManagerNames - a Set of names for the CacheManagers that manage the Cache objects to be represented by the returned resources
cacheNames - a Set of names for the Cache objects to be represented by the returned resources
Returns:
a Collection of CacheConfigEntity objects
Throws:
org.terracotta.management.ServiceExecutionException

createCacheStatisticSampleEntity

Collection<CacheStatisticSampleEntity> createCacheStatisticSampleEntity(Set<String> cacheManagerNames,
                                                                        Set<String> cacheNames,
                                                                        Set<String> statNames)
                                                                        throws org.terracotta.management.ServiceExecutionException
A factory method for CacheStatisticSampleEntity objects.

Parameters:
cacheManagerNames - a Set of names for the CacheManagers that manage the Caches whose sampled statistics are to be represented by the returned resources
cacheNames - a Set of names for the Caches whose sampled statistics are to be represented by the returned resources
statNames - a Set of names for the sampled statistics to be represented by the returned resources
Returns:
a Collection of CacheStatisticSampleEntity objects
Throws:
org.terracotta.management.ServiceExecutionException


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