public int getSizeInBytes() { return getCd().getSizeInBytes(); }
public int getSizeInBytes() { return getCd().getSizeInBytes(); }
/** * Get the serialized size of an <code>EntryEventImpl</code> * * @param eei * the entry from whcih to fetch the size * @return the size of the serialized entry */ private static int getEntrySize(EntryEventImpl eei) { @Unretained final Object v = eei.getRawNewValue(); if (v instanceof CachedDeserializable) { return ((CachedDeserializable)v).getSizeInBytes(); } return 0; }
/** * Get the serialized size of an <code>EntryEventImpl</code> * * @param eei * the entry from whcih to fetch the size * @return the size of the serialized entry */ private static int getEntrySize(EntryEventImpl eei) { @Unretained final Object v = eei.getRawNewValue(); if (v instanceof CachedDeserializable) { return ((CachedDeserializable)v).getSizeInBytes(); } return 0; }
} else if (o instanceof CachedDeserializable) { result = ((CachedDeserializable)o).getSizeInBytes(); addOverhead = false; } else if (o instanceof Sizeable) {
result = getArrayOfBytesSize((byte[][])o, false); } else if (o instanceof CachedDeserializable) { result = ((CachedDeserializable)o).getSizeInBytes() + 4 - overhead(); } else if (o instanceof Sizeable) { result = ((Sizeable)o).getSizeInBytes() + 4;
nowSizeOfObject = sizer.getSize(actualValueInVM); } else if (actualValueInVM instanceof CachedDeserializable) { ((CachedDeserializable)actualValueInVM).getSizeInBytes(); } else { throw new TestException("Test does not currently handle " + actualValueInVM.getClass().getName());
} else if (actualValueInVM instanceof CachedDeserializable) { if (cdForm instanceof byte[]) { sizeOfObject = ((CachedDeserializable)actualValueInVM).getSizeInBytes(); sizeParts = "CachedDeserializable in byte form, getSizeInBytes() " + sizeOfObject; } else if (cdForm instanceof BaseValueHolder) {
haEventWrapper.setClientUpdateMessage(null); newValue = CachedDeserializableFactory.create(original, ((CachedDeserializable)newValue).getSizeInBytes());
if (isCD) { newValue = CachedDeserializableFactory.create(original, ((CachedDeserializable)newValue).getSizeInBytes());