GemFire 5.5.1

com.gemstone.gemfire.cache.util
Class ObjectSizerImpl

java.lang.Object
  extended by com.gemstone.gemfire.cache.util.ObjectSizerImpl
All Implemented Interfaces:
ObjectSizer

public class ObjectSizerImpl
extends Object
implements ObjectSizer

This class provides an implementation of the ObjectSizer interface. This uses a helper class to provide the size of an object. The implementation uses reflection to compute object size. This is to be used for testing purposes only This implementation is slow and may cause throughput numbers to drop if used on complex objects.


Constructor Summary
ObjectSizerImpl()
           
 
Method Summary
 int sizeof(Object o)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectSizerImpl

public ObjectSizerImpl()
Method Detail

sizeof

public int sizeof(Object o)
Specified by:
sizeof in interface ObjectSizer

GemFire 5.5.1

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