@Override protected ClusterContext initialValue() { return new ClusterContext(); } };
public void runService(){ if(interactionMapping == null){ if(ClusterContext.getInstance().getCacheManager().getInteractionCache().size() > 0){ logger.error("ERROR: CACHE PROBLEM. InteractionCache HAS NOT BEEN RESET"); } interactionMapping = ClusterContext.getInstance().getCacheManager().getInteractionCache(); } if(interactorMapping == null){ if(ClusterContext.getInstance().getCacheManager().getInteractorCache().size() > 0){ logger.error("ERROR: CACHE PROBLEM. InteractorCache HAS NOT BEEN RESET"); } interactorMapping = ClusterContext.getInstance().getCacheManager().getInteractorCache(); } if(synonymMapping == null){ if(ClusterContext.getInstance().getCacheManager().getSynonymCache().size() > 0){ logger.error("ERROR: CACHE PROBLEM. SynonymCache HAS NOT BEEN RESET"); } synonymMapping = ClusterContext.getInstance().getCacheManager().getSynonymCache(); } setMappingForPsicquic(); setMappingForBinaryInteractions(); }