@Override
 public void toData(DataOutput out) throws IOException {
   out.writeInt(this.prId);
   out.writeByte(this.scope.ordinal);
   InternalDataSerializer.invokeToData(this.pAttrs, out);
   out.writeBoolean(this.isDestroying);
   out.writeBoolean(this.isColocationComplete);
   InternalDataSerializer.invokeToData(this.nodes, out);
   DataSerializer.writeString(this.partitionResolver, out);
   DataSerializer.writeString(this.colocatedWith, out);
   DataSerializer.writeString(this.fullPath, out);
   InternalDataSerializer.invokeToData(this.ea, out);
   InternalDataSerializer.invokeToData(this.regionIdleTimeout, out);
   InternalDataSerializer.invokeToData(this.regionTimeToLive, out);
   InternalDataSerializer.invokeToData(this.entryIdleTimeout, out);
   InternalDataSerializer.invokeToData(this.entryTimeToLive, out);
   out.writeBoolean(this.firstDataStoreCreated);
   DataSerializer.writeObject(elderFPAs, out);
   DataSerializer.writeArrayList(this.partitionListenerClassNames, out);
   if (this.gatewaySenderIds.isEmpty()) {
     DataSerializer.writeObject(null, out);
   } else {
     DataSerializer.writeObject(this.gatewaySenderIds, out);
   }
 }
Esempio n. 2
0
 @Override
 public void toData(DataOutput out) throws IOException {
   DataSerializer.writeString(this.type, out);
   DataSerializer.writeObject(this.attributes, out);
   DataSerializer.writeString(this.xmlDefinition, out);
   DataSerializer.writeString(this.searchString, out);
   DataSerializer.writeString(this.prefix, out);
   DataSerializer.writeString(this.namespace, out);
 }
Esempio n. 3
0
 /**
  * Writes the state of this object to the given <code>DataOutput</code>.
  *
  * @gfcodegen This code is generated by gfcodegen.
  */
 public void toData(DataOutput output) throws IOException {
   DataSerializer.writeString(name, output);
   //		DataSerializer.writeBoolean(isReal, output);
   DataSerializer.writeString(fullPath, output);
   DataSerializer.writeObject(childList, output);
   DataSerializer.writeObject(attrInfo, output);
   DataSerializer.writeObject(temporalType, output);
   DataSerializer.writeString(keyTypeName, output);
   DataSerializer.writeString(valueTypeName, output);
   DataSerializer.writePrimitiveInt(size, output);
   DataSerializer.writeObject(primaryBucketInfoList, output);
   DataSerializer.writeObject(redundantBucketInfoList, output);
 }
Esempio n. 4
0
 @Override
 public void toData(DataOutput out) throws IOException {
   DataSerializer.writeObject(key, out);
   DataSerializer.writeObject(originKey, out);
   DataSerializer.writeBoolean(nodeChange, out);
   DataSerializer.writeHashMap(values, out);
   DataSerializer.writeString(operation, out);
 }
 @Override
 public void toData(DataOutput dout) throws IOException {
   super.toData(dout);
   DataSerializer.writeObject(relayRecipient, dout);
   dout.writeInt(processorId);
   dout.writeInt(processorType);
   dout.writeBoolean(allRegions);
   if (!allRegions) {
     DataSerializer.writeString(regionPath, dout);
   }
 }
  public void toData(DataOutput out) throws IOException {
    out.writeBoolean(host != null);
    if (host != null) {
      DataSerializer.writeInetAddress(host, out);
    }
    out.writeBoolean(directory != null);
    if (directory != null) {
      DataSerializer.writeString(directory, out);
    }

    DataSerializer.writeObject(diskStoreID, out);
    out.writeLong(revokedTime);
  }
 /**
  * @throws IllegalStateException if off-heap and the actual value is not yet known (because the
  *     DistributedSystem has not yet been created)
  */
 public void toData(DataOutput out) throws IOException {
   checkLocalMaxMemoryExists();
   out.writeInt(this.redundancy);
   out.writeLong(this.totalMaxMemory);
   out.writeInt(
       getLocalMaxMemory()); // call the gettor to force it to be computed in the offheap case
   out.writeInt(this.totalNumBuckets);
   DataSerializer.writeString(this.colocatedRegionName, out);
   DataSerializer.writeObject(this.localProperties, out);
   DataSerializer.writeObject(this.globalProperties, out);
   out.writeLong(this.recoveryDelay);
   out.writeLong(this.startupRecoveryDelay);
   DataSerializer.writeObject(this.fixedPAttrs, out);
 }
 @Override
 public void toData(DataOutput out) throws IOException {
   boolean tmpJmxManager;
   String tmpHost;
   int tmpPort;
   boolean tmpSsl;
   boolean tmpStarted;
   synchronized (this) {
     tmpJmxManager = this.jmxManager;
     tmpHost = this.host;
     tmpPort = this.port;
     tmpSsl = this.ssl;
     tmpStarted = this.started;
   }
   super.toData(out);
   DataSerializer.writePrimitiveBoolean(tmpJmxManager, out);
   DataSerializer.writeString(tmpHost, out);
   DataSerializer.writePrimitiveInt(tmpPort, out);
   DataSerializer.writePrimitiveBoolean(tmpSsl, out);
   DataSerializer.writePrimitiveBoolean(tmpStarted, out);
 }
  /**
   * Send the contents of this instance to the DataOutput Required to be a {@link
   * com.gemstone.gemfire.DataSerializable}Note: must be symmetric with {@link
   * #fromData(DataInput)}in what it writes
   */
  @Override
  public void toData(DataOutput out) throws IOException {
    super.toData(out);
    short flags = computeCompressedShort();
    out.writeShort(flags);
    if (this.processorId != 0) {
      out.writeInt(this.processorId);
    }
    if (this.processorType != 0) {
      out.writeByte(this.processorType);
    }
    if (this.getTXUniqId() != TXManagerImpl.NOTX) {
      out.writeInt(this.getTXUniqId());
    }
    if (this.getTXMemberId() != null) {
      DataSerializer.writeObject(this.getTXMemberId(), out);
    }
    DataSerializer.writeString(this.regionPath, out);

    // extra field post 9.0
    if (InternalDataSerializer.getVersionForDataStream(out).compareTo(Version.GFE_90) >= 0) {
      out.writeBoolean(this.isTransactionDistributed);
    }
  }
Esempio n. 10
0
 public void toData(DataOutput out) throws IOException {
   DataSerializer.writeString(this.orderName, out);
 }