@Override
    public void toData(DataOutput out,
        SerializationContext context) throws IOException {
      final long heapBytesUsed;
      final MemoryState heapState;
      final MemoryThresholds heapThresholds;
      final long offHeapBytesUsed;
      final MemoryState offHeapState;
      final MemoryThresholds offHeapThresholds;
      synchronized (this) {
        heapBytesUsed = this.heapBytesUsed;
        heapState = this.heapState;
        heapThresholds = this.heapThresholds;

        offHeapBytesUsed = this.offHeapBytesUsed;
        offHeapState = this.offHeapState;
        offHeapThresholds = this.offHeapThresholds;
      }
      super.toData(out, context);

      out.writeLong(heapBytesUsed);
      heapState.toData(out);
      heapThresholds.toData(out);

      out.writeLong(offHeapBytesUsed);
      offHeapState.toData(out);
      offHeapThresholds.toData(out);
    }
Used to process incoming Resource Manager profiles. A reply is expected to contain a profile
with state of the local Resource Manager.

@since GemFire 6.0
geode-core/src/main/java/org/apache/geode/internal/cache/control/ResourceAdvisor.java