Package org.serviceconnector.registry

Examples of org.serviceconnector.registry.CacheRegistry


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


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

    CacheRegistry caches = AppContext.getCacheRegistry();

    // create necessary caches (from ENUM)
    for (SC_CACHE_TYPE cacheType : SC_CACHE_TYPE.values()) {
      ISCCache<?> cache = SCCacheFactory.createDefaultSCCache(cacheConfiguration, cacheType);
      caches.addCache(cacheType.name(), cache);
    }
    metaDataCache = (ISCCache<SCCacheMetaEntry>) caches.getCache(SC_CACHE_TYPE.META_DATA_CACHE.name());
    dataCache = (ISCCache<SCMPMessage>) caches.getCache(SC_CACHE_TYPE.DATA_CACHE.name());
  }
View Full Code Here

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

    CacheRegistry caches = AppContext.getCacheRegistry();

    // create necessary caches (from ENUM)
    for (SC_CACHE_TYPE cacheType : SC_CACHE_TYPE.values()) {
      ISCCache<?> cache = SCCacheFactory.createDefaultSCCache(cacheConfiguration, cacheType);
      caches.addCache(cacheType.name(), cache);
    }
    metaDataCache = (ISCCache<SCCacheMetaEntry>) caches.getCache(SC_CACHE_TYPE.META_DATA_CACHE.name());
    dataCache = (ISCCache<SCMPMessage>) caches.getCache(SC_CACHE_TYPE.DATA_CACHE.name());
  }
View Full Code Here

TOP

Related Classes of org.serviceconnector.registry.CacheRegistry

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.