public void addOrUpdate ( WekaModelConfig wekaModelConfig ) throws FOSException { checkNotNull ( wekaModelConfig , "Model config cannot be null" ) ; WekaThreadSafeScorer newWekaThreadSafeScorer = new WekaThreadSafeScorerPool ( wekaModelConfig , wekaManagerConfig ) ; WekaThreadSafeScorer oldWekaThreadSafeScorer = quickSwitch ( wekaModelConfig . getId ( ) , newWekaThreadSafeScorer ) ; WekaUtils . closeSilently ( oldWekaThreadSafeScorer ) ; }
Adds the given model to the managed models .