public Object getValue() { if(this.serializedValue != null){ return this.serializedValue; } return getCd().getValue(); } public void writeValueAsByteArray(DataOutput out) throws IOException {
public Object getValue() { if(this.serializedValue != null){ return this.serializedValue; } return getCd().getValue(); } public void writeValueAsByteArray(DataOutput out) throws IOException {
public void run() { Cache cache = getCache(); LocalRegion region = (LocalRegion) cache.getRegion("region"); Object value = region.getValueInVM(key); ValueType type = expectedType; if (CachedDeserializableFactory.preferObject()) { type = ValueType.RAW_VALUE; } switch (type) { case RAW_VALUE: assertTrue("Value was " + value + " type " + value.getClass(), !(value instanceof CachedDeserializable)); break; case CD_SERIALIZED: assertTrue("Value was " + value + " type " + value.getClass(), value instanceof CachedDeserializable); assertTrue("Value not serialized", ((CachedDeserializable)value).getValue() instanceof byte[]); break; case CD_DESERIALIZED: assertTrue("Value was " + value + " type " + value.getClass(), value instanceof CachedDeserializable); assertTrue("Value was serialized", !(((CachedDeserializable)value).getValue() instanceof byte[])); break; case EVICTED: assertEquals(null, value); break; } } });
value = ((CachedDeserializable)value).getValue();
public void toData(DataOutput out) throws IOException { out.writeByte(this.op.ordinal); out.writeByte(this.flags); if (getFlag(VALUE_IS_BYTE_ARRAY)) { DataSerializer.writeByteArray((byte[])this.valueObject, out); } else if (getFlag(VALUE_IS_OBJECT)) { if(valueObject instanceof CachedDeserializable) { CachedDeserializable cd = (CachedDeserializable)valueObject; DataSerializer.writeObjectAsByteArray(cd.getValue(), out); } else { DataSerializer.writeObjectAsByteArray(valueObject, out); } } else { DataSerializer.writeObject(valueObject, out); } }
public void toData(DataOutput out) throws IOException { out.writeByte(this.op.ordinal); out.writeByte(this.flags); if (getFlag(VALUE_IS_BYTE_ARRAY)) { DataSerializer.writeByteArray((byte[])this.valueObject, out); } else if (getFlag(VALUE_IS_OBJECT)) { if(valueObject instanceof CachedDeserializable) { CachedDeserializable cd = (CachedDeserializable)valueObject; DataSerializer.writeObjectAsByteArray(cd.getValue(), out); } else { DataSerializer.writeObjectAsByteArray(valueObject, out); } } else { DataSerializer.writeObject(valueObject, out); } }
Object cdValue = ((CachedDeserializable)value).getValue(); if (cdValue instanceof byte[]) { getMessage().addRawPart((byte[])cdValue, true);
data = ((StoredObject) data).getDeserializedForReading(); } else { data = ((CachedDeserializable)data).getValue();
data = ((StoredObject) data).getDeserializedForReading(); } else { data = ((CachedDeserializable)data).getValue();
Object cdValue = ((CachedDeserializable)value).getValue(); if (cdValue instanceof byte[]) { getMessage().addRawPart((byte[])cdValue, true);
this.valObj = ((StoredObject)original.valObj).getDeserializedForReading(); } else { Object val = ((CachedDeserializable) original.valObj).getValue(); if(val instanceof byte[]) { this.valBytes = (byte[]) val;
this.valObj = ((StoredObject)original.valObj).getDeserializedForReading(); } else { Object val = ((CachedDeserializable) original.valObj).getValue(); if(val instanceof byte[]) { this.valBytes = (byte[]) val;
} else { this.oldValueIsSerialized = true; Object o = cd.getValue(); if (o instanceof byte[]) { setOldValBytes((byte[])o);
array = (int[])cd.getValue();
} else if (!importer.isCachedDeserializableValueOk() && ov instanceof CachedDeserializable) { CachedDeserializable cd = (CachedDeserializable) ov; Object cdV = cd.getValue(); if (cdV instanceof byte[]) { importer.importOldBytes((byte[]) cdV, true);
} else if (!importer.isCachedDeserializableValueOk() && ov instanceof CachedDeserializable) { CachedDeserializable cd = (CachedDeserializable) ov; Object cdV = cd.getValue(); if (cdV instanceof byte[]) { importer.importOldBytes((byte[]) cdV, true);
} else if (nv instanceof CachedDeserializable) { CachedDeserializable cd = (CachedDeserializable) nv; Object cdV = cd.getValue(); if (cdV instanceof byte[]) { importer.importNewBytes((byte[]) cdV, true);
Object instance = ((CachedDeserializable)rawNewValue).getValue(); if (instance instanceof com.gemstone.gemfire.Delta && ((com.gemstone.gemfire.Delta)instance).hasDelta()) {
instance = ((CachedDeserializable)rawNewValue).getValue(); final com.gemstone.gemfire.Delta delta; if (instance instanceof com.gemstone.gemfire.Delta