public final synchronized void initEVCache ( String app ) { if ( app == null || ( app = app . trim ( ) ) . length ( ) == 0 ) throw new IllegalArgumentException ( "param app name null or space" ) ; final String APP = getAppName ( app ) ; if ( poolMap . containsKey ( APP ) ) return ; final EVCacheNodeList provider ; if ( EVCacheConfig . getInstance ( ) . getChainedBooleanProperty ( APP + ".use.simple.node.list.provider" , "evcache.use.simple.node.list.provider" , Boolean . FALSE , null ) . get ( ) ) { provider = new SimpleNodeListProvider ( ) ; } else { provider = new DiscoveryNodeListProvider ( applicationInfoManager , discoveryClient , APP ) ; } final EVCacheClientPool pool = new EVCacheClientPool ( APP , provider , asyncExecutor , this ) ; scheduleRefresh ( pool ) ; poolMap . put ( APP , pool ) ; }
Will init the given EVCache app call . If one is already initialized for the given app method returns without doing anything .