示例#1
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);
    }
  }
示例#2
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();
 }
示例#3
0
 @Override
 protected void readInternal(ObjectDataInput in) throws IOException {
   backupOp = in.readObject();
   if (in.readBoolean()) {
     originalCaller = new Address();
     originalCaller.readData(in);
   }
   replicaVersions = in.readLongArray();
   sync = in.readBoolean();
 }
示例#4
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 {
   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();
 }
 public void readData(DataInput in) throws IOException {
   script = in.readUTF();
   engine = in.readUTF();
   targetAllMembers = in.readBoolean();
   int size = in.readInt();
   targets = new HashSet<Address>(size);
   for (int i = 0; i < size; i++) {
     Address target = new Address();
     target.readData(in);
     targets.add(target);
   }
   bindings = readMap(in);
 }
 @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();
   }
 }
 @Override
 public void readData(ObjectDataInput in) throws IOException {
   super.readData(in);
   address = new Address();
   address.readData(in);
 }