Package com.tangosol.net

Examples of com.tangosol.net.Cluster


  private void initTypeMap() {
    if (USE_PUBLIC_CACHE_CONFIG) {
      typeMap = CacheFactory.getCache(AUTO_POF_MAPPING);
    }
    else {
      Cluster cluster = CacheFactory.getCluster();
      if (cluster.getServiceInfo(AUTO_POF_SERVICE) != null) {
        CacheService service = (CacheService) cluster.getService(AUTO_POF_SERVICE);
        typeMap = service.ensureCache(AUTO_POF_MAPPING, null);
      }
      else {
        XmlElement xml = XmlHelper.loadXml(XML_FRAGMENT);
        typeMap = new DefaultConfigurableCacheFactory(xml).ensureCache(AUTO_POF_MAPPING, null);
View Full Code Here


  private static final Logger logger = Logger.getLogger(OPSCoherenceNotifier.class.getName());
  private static final String CACHE_NAME = "ops-notification-cache";

  public static void publish(Shipment shipment) {
    Cluster cluster = CacheFactory.ensureCluster();
/*
    logger.info("----------------------------------------------------");
    Service svc = cluster.ensureService("OPSDistributedCache"
      , CacheService.TYPE_DISTRIBUTED);
    logger.log(Level.INFO, "Service name: " + svc.getInfo().getServiceName());
View Full Code Here

TOP

Related Classes of com.tangosol.net.Cluster

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.