Package com.sun.identity.policy
Class PolicyStatsListener
- java.lang.Object
-
- com.sun.identity.policy.PolicyStatsListener
-
- All Implemented Interfaces:
StatsListener
public class PolicyStatsListener extends Object implements StatsListener
Implementation ofcom.iplanet.am.util.StatsListener, to record policy cache stats We would potentially record cache stats of PolicyCache: policies, policyManagers, policyListenersMap PolicyEvaluator: policyResultsCache, ssoListenerRegistry, policyListenerRegistry, userNSRoleCache, resouceNamesMap PolicyRequestHandler: policyEvaluators, listenerRegistry An instance of PolicyStatsListener is constructed and registered with Stats service at the first invocation of PolicyCache.getInstance() call
-
-
Constructor Summary
Constructors Constructor Description PolicyStatsListener(Stats policyStats)Constructs PolicyStatsListener
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprintStats()Records policy cache stats.
-
-
-
Constructor Detail
-
PolicyStatsListener
public PolicyStatsListener(Stats policyStats)
Constructs PolicyStatsListener- Parameters:
policyStats-Statsinstance that would be used to record cache stats
-
-
Method Detail
-
printStats
public void printStats()
Records policy cache stats. This method will be invoked by stats service if the stats service is enabled- Specified by:
printStatsin interfaceStatsListener
-
-