@Override
    public void toData(DataOutput out,
        SerializationContext context) throws IOException {
      super.toData(out, context);
      out.writeInt(processorId);
      if (profiles != null) {
        out.writeInt(profiles.length);
        for (final ResourceManagerProfile profile : profiles) {
          InternalDataSerializer.invokeToData(profile, out);
        }
      } else {
        out.writeInt(-1);
      }
    }
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