GemFire 6.6.1

com.gemstone.gemfire.cache.util
Class ObjectSizerImpl

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

Deprecated. use ObjectSizer.DEFAULT instead.

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.


Field Summary
 
Fields inherited from interface com.gemstone.gemfire.cache.util.ObjectSizer
DEFAULT, REFLECTION_SIZE, SIZE_CLASS_ONCE
 
Constructor Summary
ObjectSizerImpl()
          Deprecated.  
 
Method Summary
 int sizeof(Object o)
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectSizerImpl

public ObjectSizerImpl()
Deprecated. 
Method Detail

sizeof

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

GemFire 6.6.1

Copyright © 1997-2011 VMware, Inc. All rights reserved.