public class Client extends Object
See the README.html for instructions on how to run the example.
See the source code in Client.java
to see how to use the client APIs.
The two types of clients are:
| Modifier and Type | Class and Description |
|---|---|
static class |
Client.SubscriberListener
A listener that is used in the subscriber client to wait for the
publisher to finish its work.
|
| Modifier and Type | Method and Description |
|---|---|
static com.gemstone.gemfire.cache.client.ClientCacheFactory |
connectStandalone(String name)
Sets up this client's
ClientCache. |
static void |
main(String[] args)
See the the
README.html for instructions on how to
run the class from the command line. |
public static com.gemstone.gemfire.cache.client.ClientCacheFactory connectStandalone(String name)
ClientCache. Since we are using a ClientCache,
we can omit a few properties we would usually provide
(mcast-port, locators, etc).
Logging and statistics are enabled because it is best to have these recorded.
cache-xml-file is disabled since this example uses API to create the client's pools and regions.
An alternative would be to use a gemfire.properties file containing:
log-file=name.log
statistic-archive-file=name.gfs
statistic-sampling-enabled=true
cache-xml-file=
and to construct a default ClientCacheFactory, allowing
GemFire to load the properties from the property file.
name - the base name to use for the log file and stats file.ClientCacheCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.