public class WANClient extends Object
WANClient is a WAN client application. If invoked with the 'us'
argument, it writes entries to a region that participates in a WAN. If invoked with
the 'eu' argument, it listens for updates to a region that participates in a WAN.| Modifier and Type | Field and Description |
|---|---|
protected com.gemstone.gemfire.cache.client.ClientCache |
cache
The GemFire
ClientCache |
protected com.gemstone.gemfire.cache.Region<String,Value> |
region
The GemFire
Region |
| Constructor and Description |
|---|
WANClient() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doPuts()
Executes the
WANClient conflicting update thread |
protected void |
initializeCache()
Initializes the GemFire
ClientCache. |
protected void |
initializeRegion(String regionName)
Initializes the GemFire
Region. |
static void |
main(String[] args)
Parses the command line and executes the
WANClient example. |
protected void |
waitForever()
Waits forever.
|
protected com.gemstone.gemfire.cache.client.ClientCache cache
ClientCachepublic static void main(String[] args) throws Exception
WANClient example.args - The arguments to parseExceptionprotected void initializeCache()
throws com.gemstone.gemfire.cache.CacheException
ClientCache.com.gemstone.gemfire.cache.CacheExceptionprotected void initializeRegion(String regionName)
Region.regionName - The name of the Region to initializeprotected void doPuts()
WANClient conflicting update threadprotected void waitForever()
throws InterruptedException
InterruptedExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.