Description
While creating a region in gfsh, users should be able to configure eviction for that region.
All three modes of eviction should be supported:
1. Eviction driven by the resource manager:
gfsh>create region --name=myRegion --type=REPLICATE --eviction-enabled
2. eviction driven by entry count in the region:
gfsh>create region --name=myRegion --type=REPLICATE --eviction-entry-count=1000
3. eviction driven by bytes used:
gfsh>create region --name=myRegion --type=REPLICATE --eviction-max-memory=100 (value in megabytes)
And also specify the eviction action as
--eviction-action=overflow-to-disk or --eviction-action=local-destroy
and an object sizer, so that users can plug-in custom object sizes as
--eviction-object-sizer=my.company.geode.MySizer
the sizer should only apply to heap and memory based eviction.