public static void main()

in compression/src/main/java/org/apache/geode_examples/compression/Example.java [32:49]


  public static void main(String[] args) {
    ClientCache cache = new ClientCacheFactory().set("log-level", "WARN").create();
    // connect to the locator using default port 10334
    PoolFactory poolFactory = PoolManager.createFactory();
    poolFactory.addLocator("127.0.0.1", 10334);
    poolFactory.create(POOL_NAME);

    // create a local region that matches the server region
    Region<Integer, String> region =
        cache.<Integer, String>createClientRegionFactory(ClientRegionShortcut.PROXY)
            .setPoolName(POOL_NAME).create("example-region");

    Example example = new Example(region);
    example.putValues(10);
    example.printValues(example.getValues());

    cache.close();
  }