Skip to Content.
Sympa Menu

grouper-dev - RE: [grouper-dev] configurable Caching Resolver ?

Subject: Grouper Developers Forum

List archive

RE: [grouper-dev] configurable Caching Resolver ?


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Tom Zeller <>, Grouper Dev <>
  • Subject: RE: [grouper-dev] configurable Caching Resolver ?
  • Date: Wed, 23 Mar 2011 23:07:23 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US

Ehcachecontroller says it's the grouper.ehcache.xml file to customize the
behavior... if you want to put it in the example file for this, then it will
use that as the default...

LOG.info("cache not configured explicitly: " + name + ", to override
default values, " +
"configure in the resource /grouper.ehcache.xml.
Default values are:" +
"maxElementsInMemory: " + defaultMaxElementsInMemory
+ ", eternal: " + defaultEternal
+ ", timeToIdleSeconds: " + defaultTimeToIdleSeconds
+ ", timeToLiveSeconds: "
+ defaultTimeToLiveSeconds + ", overFlowToDisk: " +
defaultOverflowToDisk);

Thanks,
Chris

-----Original Message-----
From: Chris Hyzer
Sent: Wednesday, March 23, 2011 11:03 PM
To: 'Tom Zeller'; Grouper Dev
Subject: RE: [grouper-dev] configurable Caching Resolver ?

Hardcoded for defaults, but if you use that classname .FindAll in the ehcache
config file (one or the other, forget which one) you can override it. :)

Thanks,
Chris

-----Original Message-----
From:


[mailto:]
On Behalf Of Tom Zeller
Sent: Wednesday, March 23, 2011 7:39 PM
To: Grouper Dev
Subject: [grouper-dev] configurable Caching Resolver ?

It might be nice to be able to configure the CachingResolver via
grouper.properties or ehcache.xml or ?

The TTL and maxElements are hardcoded :

public class CachingResolver {

static GrouperCache<MultiKey, Set<Subject>> findAllCache = new
GrouperCache<MultiKey, Set<Subject>>(CachingResolver.class.getName() +
".FindAll", 5000, false, 30, 120, false);



Archive powered by MHonArc 2.6.16.

Top of Page