コード例 #1
0
ファイル: DFSHealthReport.java プロジェクト: kryton/hue
  public void write(TProtocol oprot) throws TException {
    validate();

    oprot.writeStructBegin(STRUCT_DESC);
    oprot.writeFieldBegin(BYTES_TOTAL_FIELD_DESC);
    oprot.writeI64(this.bytesTotal);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(BYTES_USED_FIELD_DESC);
    oprot.writeI64(this.bytesUsed);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(BYTES_REMAINING_FIELD_DESC);
    oprot.writeI64(this.bytesRemaining);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(BYTES_NON_DFS_FIELD_DESC);
    oprot.writeI64(this.bytesNonDfs);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(NUM_LIVE_DATA_NODES_FIELD_DESC);
    oprot.writeI32(this.numLiveDataNodes);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(NUM_DEAD_DATA_NODES_FIELD_DESC);
    oprot.writeI32(this.numDeadDataNodes);
    oprot.writeFieldEnd();
    if (this.upgradeStatus != null) {
      oprot.writeFieldBegin(UPGRADE_STATUS_FIELD_DESC);
      this.upgradeStatus.write(oprot);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(HTTP_PORT_FIELD_DESC);
    oprot.writeI32(this.httpPort);
    oprot.writeFieldEnd();
    oprot.writeFieldStop();
    oprot.writeStructEnd();
  }
コード例 #2
0
  public void write(TProtocol oprot) throws TException {
    validate();

    oprot.writeStructBegin(STRUCT_DESC);
    oprot.writeFieldBegin(RESPONSE_CODE_FIELD_DESC);
    oprot.writeI32(this.responseCode);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
    oprot.writeI64(this.transactionID);
    oprot.writeFieldEnd();
    if (this.description != null) {
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
      oprot.writeString(this.description);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldStop();
    oprot.writeStructEnd();
  }
コード例 #3
0
  public void write(TProtocol oprot) throws TException {
    validate();

    oprot.writeStructBegin(STRUCT_DESC);
    if (isSetTimestamp()) {
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
      oprot.writeI64(this.timestamp);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(WHAT_FIELD_DESC);
    oprot.writeI32(this.what);
    oprot.writeFieldEnd();
    if (this.why != null) {
      oprot.writeFieldBegin(WHY_FIELD_DESC);
      oprot.writeString(this.why);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldStop();
    oprot.writeStructEnd();
  }
コード例 #4
0
ファイル: Deletion.java プロジェクト: pologood/Solandra
  public void write(TProtocol oprot) throws TException {
    validate();

    oprot.writeStructBegin(STRUCT_DESC);
    oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
    oprot.writeI64(this.timestamp);
    oprot.writeFieldEnd();
    if (this.super_column != null) {
      if (isSetSuper_column()) {
        oprot.writeFieldBegin(SUPER_COLUMN_FIELD_DESC);
        oprot.writeBinary(this.super_column);
        oprot.writeFieldEnd();
      }
    }
    if (this.predicate != null) {
      if (isSetPredicate()) {
        oprot.writeFieldBegin(PREDICATE_FIELD_DESC);
        this.predicate.write(oprot);
        oprot.writeFieldEnd();
      }
    }
    oprot.writeFieldStop();
    oprot.writeStructEnd();
  }