Package org.serviceconnector.registry

Examples of org.serviceconnector.registry.CacheModuleRegistry


    if (AppContext.scEnvironment) {
      AppContext.serverRegistry = new ServerRegistry();
      AppContext.serviceRegistry = new ServiceRegistry();
      AppContext.sessionRegistry = new SessionRegistry();
      AppContext.subscriptionRegistry = new SubscriptionRegistry();
      AppContext.cacheModuleRegistry = new CacheModuleRegistry();
    }
  }
View Full Code Here


      return;
    }
    // clean up old cache files when loading a new SC cache
    cleanUpCacheFiles();

    CacheModuleRegistry cacheModules = AppContext.getCacheModuleRegistry();

    // create necessary cache modules (from ENUM)
    for (SC_CACHE_MODULE_TYPE cacheModuleType : SC_CACHE_MODULE_TYPE.values()) {
      ISCCacheModule<?> cacheModule = SCCacheFactory.createDefaultSCCache(cacheConfiguration, cacheModuleType);
      cacheModules.addCacheModule(cacheModuleType.name(), cacheModule);
    }
    metaDataCacheModule = (ISCCacheModule<SCCacheMetaEntry>) cacheModules.getCache(SC_CACHE_MODULE_TYPE.META_DATA_CACHE_MODULE
        .name());
    dataCacheModule = (ISCCacheModule<SCMPMessage>) cacheModules.getCache(SC_CACHE_MODULE_TYPE.DATA_CACHE_MODULE.name());
  }
View Full Code Here

TOP

Related Classes of org.serviceconnector.registry.CacheModuleRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.