com.googlecode.icegem.utils
Class RegionSizeFunction

java.lang.Object
  extended by com.gemstone.gemfire.cache.execute.FunctionAdapter
      extended by com.googlecode.icegem.utils.RegionSizeFunction
All Implemented Interfaces:
com.gemstone.gemfire.cache.execute.Function, java.io.Serializable

public class RegionSizeFunction
extends com.gemstone.gemfire.cache.execute.FunctionAdapter

Author:
Renat Akhmerov.
See Also:
Serialized Form

Constructor Summary
RegionSizeFunction()
           
 
Method Summary
 void execute(com.gemstone.gemfire.cache.execute.FunctionContext ctx)
           
 java.lang.String getId()
           
 boolean optimizeForWrite()
          NOTE: This method should return true so that the function would not be sent to nodes which don't have any primary data.
 
Methods inherited from class com.gemstone.gemfire.cache.execute.FunctionAdapter
hasResult, isHA
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegionSizeFunction

public RegionSizeFunction()
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface com.gemstone.gemfire.cache.execute.Function
Specified by:
getId in class com.gemstone.gemfire.cache.execute.FunctionAdapter

optimizeForWrite

public boolean optimizeForWrite()
NOTE: This method should return true so that the function would not be sent to nodes which don't have any primary data.

Specified by:
optimizeForWrite in interface com.gemstone.gemfire.cache.execute.Function
Overrides:
optimizeForWrite in class com.gemstone.gemfire.cache.execute.FunctionAdapter

execute

public void execute(com.gemstone.gemfire.cache.execute.FunctionContext ctx)
Specified by:
execute in interface com.gemstone.gemfire.cache.execute.Function
Specified by:
execute in class com.gemstone.gemfire.cache.execute.FunctionAdapter


Copyright © 2011. All Rights Reserved.