public Map < Integer , ClientAffinityStats > getAffinityStats ( ) { Map < Integer , ClientAffinityStats > retval = new TreeMap < Integer , ClientAffinityStats > ( ) ; for ( Entry < Integer , ClientAffinityStats > e : m_currentAffinity . entrySet ( ) ) { if ( m_baselineAffinity . containsKey ( e . getKey ( ) ) ) { retval . put ( e . getKey ( ) , ClientAffinityStats . diff ( e . getValue ( ) , m_baselineAffinity . get ( e . getKey ( ) ) ) ) ; } else { retval . put ( e . getKey ( ) , ( ClientAffinityStats ) e . getValue ( ) . clone ( ) ) ; } } return retval ; }
Get the client affinity stats . Will only be populated if client affinity is enabled .