Class PolicyStatsListener

  • All Implemented Interfaces:
    StatsListener

    public class PolicyStatsListener
    extends Object
    implements StatsListener
    Implementation of com.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 Detail

      • PolicyStatsListener

        public PolicyStatsListener​(Stats policyStats)
        Constructs PolicyStatsListener
        Parameters:
        policyStats - Stats instance 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:
        printStats in interface StatsListener