public void initialize ( CacheConfig cc ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "initialize" ) ; cacheConfig = cc ; if ( null != cc ) { try { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Initializing CacheUnit " + uniqueServerNameFQ ) ; nullRemoteServices . setCacheUnit ( uniqueServerNameFQ , this ) ; } catch ( Exception ex ) { //ex.printStackTrace(); com . ibm . ws . ffdc . FFDCFilter . processException ( ex , "com.ibm.ws.cache.CacheUnitImpl.initialize" , "120" , this ) ; Tr . error ( tc , "dynacache.configerror" , ex . getMessage ( ) ) ; throw new IllegalStateException ( "Unexpected exception: " + ex . getMessage ( ) ) ; } } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "initialize" ) ; }
This is a helper method called by this CacheUnitImpl s constructor . It creates all the local objects - BatchUpdateDaemon InvalidationAuditDaemon and TimeLimitDaemon . These objects are used by all cache instances .