@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); int confSize = in.readInt(); for (int i = 0; i < confSize; i++) { final CacheConfig config = in.readObject(); configs.add(config); } int count = in.readInt(); for (int i = 0; i < count; i++) { int subCount = in.readInt(); String name = in.readUTF(); Map<Data, CacheRecord> m = new HashMap<Data, CacheRecord>(subCount); data.put(name, m); // subCount + 1 because of the DefaultData written as the last entry // which adds another Data entry at the end of the stream! for (int j = 0; j < subCount + 1; j++) { Data key = in.readData(); // Empty data received so reading can be stopped here since // since the real object subCount might be different from // the number on the stream due to found expired entries if (key.dataSize() == 0) { break; } CacheRecord record = in.readObject(); m.put(key, record); } } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { int size = in.readInt(); migrationData = new HashMap<>(); for (int i = 0; i < size; i++) { migrationData.put(in.readUTF(), in.readInt()); } }
public void readData(ObjectDataInput in) throws IOException { conditionId = in.readUTF(); int len = in.readInt(); if (len > 0) { for (int i = 0; i < len; i++) { final ConditionWaiter waiter = new ConditionWaiter(in.readUTF(), in.readInt()); waiters.put(waiter, waiter); } } }
@Override public void readData(ObjectDataInput in) throws IOException { formatId = in.readInt(); int gtiLen = in.readInt(); globalTransactionId = new byte[gtiLen]; in.readFully(globalTransactionId); int bqLen = in.readInt(); branchQualifier = new byte[bqLen]; in.readFully(branchQualifier); }
@Override public void readData(ObjectDataInput in) throws IOException { packetVersion = in.readByte(); buildNumber = in.readInt(); address = new Address(); address.readData(in); uuid = in.readUTF(); configCheck = new ConfigCheck(); configCheck.readData(in); memberCount = in.readInt(); }
@Override public void readData(ObjectDataInput in) throws IOException { nextTableIndexToReadFrom = in.readInt(); int size = in.readInt(); entries = new ArrayList<Map.Entry<Data, Data>>(size); for (int i = 0; i < size; i++) { Data key = in.readData(); Data value = in.readData(); entries.add(new AbstractMap.SimpleEntry<Data, Data>(key, value)); } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); overflowPolicy = OverflowPolicy.getById(in.readInt()); int length = in.readInt(); items = new Data[length]; for (int k = 0; k < items.length; k++) { items[k] = in.readData(); } }
public void readData(ObjectDataInput in) throws IOException { int size = in.readInt(); map = new HashMap<Data, Collection<Data>>(size); for (int i = 0; i < size; i++) { Data key = IOUtil.readData(in); int collSize = in.readInt(); Collection coll = new ArrayList(collSize); for (int j = 0; j < collSize; j++) { coll.add(IOUtil.readData(in)); } map.put(key, coll); } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); result = in.readLong(); returnsResponse = in.readBoolean(); runDelayMs = in.readInt(); shouldBackup = in.readBoolean(); syncBackups = in.readInt(); asyncBackups = in.readInt(); backupRunDelayMs = in.readInt(); // reading the stress payload in.readByteArray(); }
@Override public void readData(ObjectDataInput in) throws IOException { namespace = in.readObject(); backupCount = in.readInt(); asyncBackupCount = in.readInt(); int len = in.readInt(); if (len > 0) { for (int i = 0; i < len; i++) { LockResourceImpl lock = new LockResourceImpl(); lock.readData(in); lock.setLockStore(this); locks.put(lock.getKey(), lock); } } }
@Override public void readData(ObjectDataInput in) throws IOException { int len = in.readInt(); members = new Address[len]; for (int i = 0; i < len; i++) { Address a = new Address(); a.readData(in); members[i] = a; } len = in.readInt(); ownerIndexes = new int[len]; for (int i = 0; i < len; i++) { ownerIndexes[i] = in.readInt(); } }
public void readData(ObjectDataInput in) throws IOException { proxyId = new CollectionProxyId(); proxyId.readData(in); operationFactoryType = OperationFactoryType.getByType(in.readInt()); key = IOUtil.readNullableData(in); value = IOUtil.readNullableData(in); }
public Object readObject(final ObjectDataInput in) { try { final boolean isNull = in.readBoolean(); if (isNull) { return null; } final int typeId = in.readInt(); final SerializerAdapter serializer = serializerFor(typeId); if (serializer == null) { if (active) { throw new HazelcastSerializationException( "There is no suitable de-serializer for type " + typeId); } throw new HazelcastInstanceNotActiveException(); } if (typeId == SerializationConstants.CONSTANT_TYPE_PORTABLE && in instanceof PortableContextAwareInputStream) { ClassDefinition classDefinition = new ClassDefinitionImpl(); classDefinition.readData(in); classDefinition = serializationContext.registerClassDefinition(classDefinition); PortableContextAwareInputStream ctxIn = (PortableContextAwareInputStream) in; ctxIn.setClassDefinition(classDefinition); } Object obj = serializer.read(in); if (managedContext != null) { obj = managedContext.initialize(obj); } return obj; } catch (Throwable e) { handleException(e); } return null; }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); int size = in.readInt(); for (int i = 0; i < size; i++) { MapIndexInfo mapIndexInfo = new MapIndexInfo(); mapIndexInfo.readData(in); indexInfoList.add(mapIndexInfo); } int size2 = in.readInt(); for (int i = 0; i < size2; i++) { InterceptorInfo info = new InterceptorInfo(); info.readData(in); interceptorInfoList.add(info); } }
@Override public void readData(ObjectDataInput in) throws IOException { recordIdx = in.readInt(); BackingData.setLong(FamilyId, in.readLong(), recordIdx, backing); BackingData.setShort(MemberId, in.readShort(), recordIdx, backing); // backing.read(recordIdx, 1, in); }
protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); int size = in.readInt(); opList = new ArrayList<Operation>(size); for (int i = 0; i < size; i++) { opList.add((Operation) in.readObject()); } }
@Override @SuppressWarnings("unchecked") public void readData(ObjectDataInput in) throws IOException { int size = in.readInt(); for (int k = 0; k < size; k++) { add((E) in.readObject()); } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); runDelayMs = in.readInt(); // reading the stress payload in.readByteArray(); }
@Override public void readData(ObjectDataInput in) throws IOException { int size = in.readInt(); predicates = new Predicate[size]; for (int i = 0; i < size; i++) { predicates[i] = in.readObject(); } }
public void readData(ObjectDataInput in) throws IOException { mapName = in.readUTF(); int size = in.readInt(); for (int i = 0; i < size; i++) { MapIndexInfo.IndexInfo indexInfo = new MapIndexInfo.IndexInfo(); indexInfo.readData(in); lsIndexes.add(indexInfo); } }
@Override public void readData(ObjectDataInput in) throws IOException { super.readData(in); int len = in.readInt(); values = new Comparable[len]; for (int i = 0; i < len; i++) { values[i] = in.readObject(); } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { int size = in.readInt(); migrationData = new HashMap<String, SemaphoreContainer>(size); for (int i = 0; i < size; i++) { String name = in.readUTF(); SemaphoreContainer semaphoreContainer = new SemaphoreContainer(); semaphoreContainer.readData(in); migrationData.put(name, semaphoreContainer); } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); entryProcessor = in.readObject(); int size = in.readInt(); keys = new HashSet<Data>(size); for (int i = 0; i < size; i++) { Data key = in.readData(); keys.add(key); } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { int mapSize = in.readInt(); migrationData = new HashMap<String, CollectionContainer>(mapSize); for (int i = 0; i < mapSize; i++) { String name = in.readUTF(); SetContainer container = new SetContainer(); container.readData(in); migrationData.put(name, container); } }
@Override public void readData(ObjectDataInput in) throws IOException { mapName = in.readUTF(); int size = in.readInt(); for (int i = 0; i < size; i++) { String id = in.readUTF(); MapInterceptor interceptor = in.readObject(); interceptors.add( new AbstractMap.SimpleImmutableEntry<String, MapInterceptor>(id, interceptor)); } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { masterTime = in.readLong(); int size = in.readInt(); memberInfos = new ArrayList<MemberInfo>(size); while (size-- > 0) { MemberInfo memberInfo = new MemberInfo(); memberInfo.readData(in); memberInfos.add(memberInfo); } sendResponse = in.readBoolean(); }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); retain = in.readBoolean(); final int size = in.readInt(); valueSet = new HashSet<Data>(size); for (int i = 0; i < size; i++) { final Data value = new Data(); value.readData(in); valueSet.add(value); } }
@Override protected void readInternal(final ObjectDataInput in) throws IOException { super.readInternal(in); int len = in.readInt(); if (len > 0) { for (int i = 0; i < len; i++) { LockStoreImpl ls = new LockStoreImpl(); ls.readData(in); locks.add(ls); } } }
@Override public ArrayList read(ObjectDataInput in) throws IOException { if (in.readBoolean()) { int size = in.readInt(); ArrayList result = new ArrayList(size); for (int i = 0; i < size; i++) { result.add(i, in.readObject()); } return result; } return null; }
@Override public void readData(ObjectDataInput in) throws IOException { mainRelease = in.readUTF(); int size = in.readInt(); for (int i = 0; i < size; i++) { images.add((Image) in.readObject()); } size = in.readInt(); for (int i = 0; i < size; i++) { artists.add((ArtistRef) in.readObject()); } size = in.readInt(); for (int i = 0; i < size; i++) { genres.add(in.readUTF()); } size = in.readInt(); for (int i = 0; i < size; i++) { styles.add(in.readUTF()); } title = in.readUTF(); dataQuality = in.readUTF(); size = in.readInt(); for (int i = 0; i < size; i++) { videos.add((Video) in.readObject()); } year = in.readInt(); notes = in.readUTF(); }