wan
Class WANClient

java.lang.Object
  extended by wan.WANClient

public class WANClient
extends Object

Class 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.

Since:
4.2
Author:
GemStone Systems, Inc.

Field Summary
protected  Cache _cache
          The GemFire Cache
protected  Region _region
          The GemFire Region
 
Constructor Summary
WANClient()
           
 
Method Summary
protected  void doPuts()
          Executes the WANClient multi-threaded putter.
protected  void initializeCache()
          Initializes the GemFire Cache.
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 registerInterest()
          Registers interest in the region entries.
protected static void usage()
          Prints usage information about this program
protected  void waitForever()
          Waits forever.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_cache

protected Cache _cache
The GemFire Cache


_region

protected Region _region
The GemFire Region

Constructor Detail

WANClient

public WANClient()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Parses the command line and executes the WANClient example.

Parameters:
args - The arguments to parse
Throws:
Exception

initializeCache

protected void initializeCache()
                        throws CacheException
Initializes the GemFire Cache.

Throws:
CacheException

initializeRegion

protected void initializeRegion(String regionName)
Initializes the GemFire Region.

Parameters:
regionName - The name of the Region to initialize

doPuts

protected void doPuts()
Executes the WANClient multi-threaded putter.


registerInterest

protected void registerInterest()
                         throws CacheException
Registers interest in the region entries.

Throws:
CacheException

waitForever

protected void waitForever()
                    throws InterruptedException
Waits forever.

Throws:
InterruptedException

usage

protected static void usage()
Prints usage information about this program



Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.