Package com.gemstone.gemfire.cache.client

Examples of com.gemstone.gemfire.cache.client.ClientCacheFactory.create()


    if (serverPort != 0) {
      ccf.addPoolServer(serverHost, serverPort);
    } else if (locator != null) {
      ccf.addPoolLocator(locator.getHost().getCanonicalHostName(), locator.getPort());
    }
    cache = ccf.create();
  }
 
  @Override
  public int read(String table, String key, Set<String> fields,
      HashMap<String, ByteIterator> result) {
View Full Code Here


  protected GemFireCache createCache(Object factory) {
    ClientCacheFactory clientCacheFactory = (ClientCacheFactory) factory;

    initializePool(clientCacheFactory);

    GemFireCache cache = clientCacheFactory.create();

    // register for events after Pool and Regions been created and iff non-durable client...
    readyForEvents();

    return cache;
View Full Code Here

    props.put("name", "cq-client");
    props.put("log-level", "warning");

    ClientCacheFactory ccf = new ClientCacheFactory(props);
    ccf.setPoolSubscriptionEnabled(true);
    cache = ccf.create();
  }


  @AfterClass
  public static void cleanUp() {
View Full Code Here

    props.put("name", "function-client");
    props.put("log-level", "warning");

    ClientCacheFactory ccf = new ClientCacheFactory(props);
    ccf.setPoolSubscriptionEnabled(true);
    cache = ccf.create();

    PoolFactory pf = PoolManager.createFactory();
    pf.addServer("localhost", 40404);
    pf.setSubscriptionEnabled(true);
    pool = pf.create("client");
View Full Code Here

    props.put("name", "function-client");
    props.put("log-level", "warning");

    ClientCacheFactory ccf = new ClientCacheFactory(props);
    ccf.setPoolSubscriptionEnabled(true);
    cache = ccf.create();

    PoolFactory pf = PoolManager.createFactory();
    pf.addServer("localhost", 40404);
    pf.setSubscriptionEnabled(true);
    pool = pf.create("client");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.