com.googlecode.icegem.utils
Class RegionSizeResultCollector

java.lang.Object
  extended by com.googlecode.icegem.utils.RegionSizeResultCollector
All Implemented Interfaces:
com.gemstone.gemfire.cache.execute.ResultCollector<Integer,Integer>

public class RegionSizeResultCollector
extends Object
implements com.gemstone.gemfire.cache.execute.ResultCollector<Integer,Integer>

Author:
Renat Akhmerov.

Constructor Summary
RegionSizeResultCollector()
           
 
Method Summary
 void addResult(com.gemstone.gemfire.distributed.DistributedMember memberID, Integer singleRes)
           
 void clearResults()
           
 void endResults()
           
 Integer getResult()
           
 Integer getResult(long timeout, TimeUnit unit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegionSizeResultCollector

public RegionSizeResultCollector()
Method Detail

addResult

public void addResult(com.gemstone.gemfire.distributed.DistributedMember memberID,
                      Integer singleRes)
Specified by:
addResult in interface com.gemstone.gemfire.cache.execute.ResultCollector<Integer,Integer>

clearResults

public void clearResults()
Specified by:
clearResults in interface com.gemstone.gemfire.cache.execute.ResultCollector<Integer,Integer>

endResults

public void endResults()
Specified by:
endResults in interface com.gemstone.gemfire.cache.execute.ResultCollector<Integer,Integer>

getResult

public Integer getResult()
                  throws com.gemstone.gemfire.cache.execute.FunctionException
Specified by:
getResult in interface com.gemstone.gemfire.cache.execute.ResultCollector<Integer,Integer>
Throws:
com.gemstone.gemfire.cache.execute.FunctionException

getResult

public Integer getResult(long timeout,
                         TimeUnit unit)
                  throws com.gemstone.gemfire.cache.execute.FunctionException,
                         InterruptedException
Specified by:
getResult in interface com.gemstone.gemfire.cache.execute.ResultCollector<Integer,Integer>
Throws:
com.gemstone.gemfire.cache.execute.FunctionException
InterruptedException


Copyright © 2011. All Rights Reserved.