Example #1
0
 @Override
 public void readData(ObjectDataInput in) throws IOException {
   id = in.readUTF();
   serviceName = in.readUTF();
   topic = in.readUTF();
   subscriber = new Address();
   subscriber.readData(in);
   filter = in.readObject();
 }
Example #2
0
 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 {
   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
    public Enum read(ObjectDataInput in) throws IOException {
      String clazzName = in.readUTF();
      Class clazz;
      try {
        clazz = ClassLoaderUtil.loadClass(in.getClassLoader(), clazzName);
      } catch (ClassNotFoundException e) {
        throw new HazelcastSerializationException("Failed to deserialize enum: " + clazzName, e);
      }

      String name = in.readUTF();
      return Enum.valueOf(clazz, name);
    }
 @Override
 protected void readInternal(ObjectDataInput in) throws IOException {
   super.readInternal(in);
   stateName = in.readUTF();
   try {
     newState = ClusterState.valueOf(stateName);
   } catch (IllegalArgumentException ignored) {
     EmptyStatement.ignore(ignored);
   }
   initiator = new Address();
   initiator.readData(in);
   txnId = in.readUTF();
 }
Example #6
0
 @Override
 public void readData(ObjectDataInput in) throws IOException {
   /*int length = in.readInt();
   byte[] idBytes = new byte[length];
   in.readFully(idBytes, 0, length);*/
   /*byte[] idBytes = in.readByteArray();
   id = new ObjectId(idBytes);*/
   id = in.readObject();
   content = in.readUTF();
   userFirst = in.readUTF();
   userName = in.readUTF();
   date = in.readUTF();
 }
 @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 {
   name = in.readUTF();
   dataKey = in.readData();
   threadId = in.readLong();
   dataValue = in.readData();
   ttl = in.readLong();
 }
 @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());
   }
 }
Example #10
0
 @Override
 public void readData(ObjectDataInput in) throws IOException {
   this.mapName = in.readUTF();
   this.predicate = in.readObject();
   this.iterationType = IterationType.getById(in.readByte());
   this.aggregator = in.readObject();
   this.projection = in.readObject();
 }
 @Override
 public Class read(final ObjectDataInput in) throws IOException {
   try {
     return ClassLoaderUtil.loadClass(in.getClassLoader(), in.readUTF());
   } catch (ClassNotFoundException e) {
     throw new HazelcastSerializationException(e);
   }
 }
 protected void readInternal(ObjectDataInput in) throws IOException {
   name = in.readUTF();
   dataKey = new Data();
   dataKey.readData(in);
   threadId = in.readLong();
   dataValue = IOUtil.readNullableData(in);
   ttl = in.readLong();
 }
 @Override
 public void readData(ObjectDataInput in) throws IOException {
   lock = in.readObject();
   newValue = in.readObject();
   newVersion = in.readObject();
   nextMarkerId = in.readUTF();
   timestamp = in.readLong();
 }
 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);
   }
 }
 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());
   }
   caller = in.readUTF();
   threadId = in.readLong();
 }
Example #16
0
 @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
 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 {
   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 {
   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();
 }
Example #20
0
  @Override
  public void readData(ObjectDataInput in) throws IOException {
    name = in.readUTF();
    managerPrefix = in.readUTF();
    uriString = in.readUTF();
    backupCount = in.readInt();
    asyncBackupCount = in.readInt();

    final int resultInMemoryFormat = in.readInt();
    inMemoryFormat = InMemoryFormat.values()[resultInMemoryFormat];

    final int resultEvictionPolicy = in.readInt();
    evictionPolicy = EvictionPolicy.values()[resultEvictionPolicy];

    nearCacheConfig = in.readObject();

    // SUPER
    keyType = in.readObject();
    valueType = in.readObject();
    cacheLoaderFactory = in.readObject();
    cacheWriterFactory = in.readObject();
    expiryPolicyFactory = in.readObject();

    isReadThrough = in.readBoolean();
    isWriteThrough = in.readBoolean();
    isStoreByValue = in.readBoolean();
    isManagementEnabled = in.readBoolean();

    final boolean listNotEmpty = in.readBoolean();
    if (listNotEmpty) {
      final int size = in.readInt();
      listenerConfigurations = new HashSet<CacheEntryListenerConfiguration<K, V>>(size);
      for (int i = 0; i < size; i++) {
        listenerConfigurations.add((CacheEntryListenerConfiguration<K, V>) in.readObject());
      }
    }
  }
Example #21
0
  @Override
  public void readData(ObjectDataInput in) throws IOException {
    partitionId = in.readInt();
    boolean hasFrom = in.readBoolean();
    if (hasFrom) {
      source = new Address();
      source.readData(in);
    }
    destination = new Address();
    destination.readData(in);

    masterUuid = in.readUTF();
    if (in.readBoolean()) {
      master = new Address();
      master.readData(in);
    }
  }
 @Override
 public Externalizable read(final ObjectDataInput in) throws IOException {
   final String className = in.readUTF();
   try {
     final Externalizable ds = ClassLoaderUtil.newInstance(in.getClassLoader(), className);
     final ObjectInputStream objectInputStream;
     final InputStream inputStream = (InputStream) in;
     if (gzipEnabled) {
       objectInputStream =
           newObjectInputStream(in.getClassLoader(), new GZIPInputStream(inputStream));
     } else {
       objectInputStream = newObjectInputStream(in.getClassLoader(), inputStream);
     }
     ds.readExternal(objectInputStream);
     return ds;
   } catch (final Exception e) {
     throw new HazelcastSerializationException(
         "Problem while reading Externalizable class : " + className + ", exception: " + e);
   }
 }
 @Override
 protected void readInternal(ObjectDataInput in) throws IOException {
   callerUuid = in.readUTF();
   txnId = in.readUTF();
   xid = in.readObject();
 }
 @Override
 protected void readInternal(ObjectDataInput in) throws IOException {
   super.readInternal(in);
   lockOwner = in.readUTF();
   lockThreadId = in.readLong();
 }
Example #25
0
 @Override
 protected void readInternal(ObjectDataInput in) throws IOException {
   super.readInternal(in);
   attributeName = in.readUTF();
   ordered = in.readBoolean();
 }
 protected void readInternal(ObjectDataInput in) throws IOException {
   super.readInternal(in);
   caller = in.readUTF();
   ttl = in.readLong();
 }
 protected void readInternal(ObjectDataInput in) throws IOException {
   super.readInternal(in);
   itemId = in.readLong();
   removeOperation = in.readBoolean();
   transactionId = in.readUTF();
 }
 @Override
 protected void readInternal(ObjectDataInput in) throws IOException {
   super.readInternal(in);
   ownerUuid = in.readUTF();
 }
Example #29
0
 public void readData(ObjectDataInput in) throws IOException {
   publisher = new MemberImpl();
   publisher.readData(in);
   data = in.readUTF();
 }
 public void readData(ObjectDataInput in) throws IOException {
   attributeName = in.readUTF();
   ordered = in.readBoolean();
 }