@Override
    public void fromData(DataInput in,
        DeserializationContext context) throws IOException, ClassNotFoundException {
      super.fromData(in, context);
      processorId = in.readInt();
      final int l = in.readInt();
      if (l != -1) {
        profiles = new ResourceManagerProfile[l];
        for (int i = 0; i < profiles.length; i++) {
          final ResourceManagerProfile r = new ResourceManagerProfile();
          InternalDataSerializer.invokeFromData(r, in);
          profiles[i] = r;
        }
      } else {
        profiles = null;
      }
    }
Constructor used to send profiles to other members.

@param recips Members to send the profile to.
@param profile Profile to send.
geode-core/src/main/java/org/apache/geode/internal/cache/control/ResourceAdvisor.java