GemFire 5.8

Class ObjectSizerImpl

  extended by com.gemstone.gemfire.cache.util.ObjectSizerImpl
All Implemented Interfaces:

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
Method Summary
 int sizeof(Object o)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ObjectSizerImpl()
Method Detail


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

GemFire 5.8

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