
com.nextbreakpoint.flinkclient.model.CheckpointStatistics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.nextbreakpoint.flinkclient.core Show documentation
Show all versions of com.nextbreakpoint.flinkclient.core Show documentation
Cope API for managing Apache Flink
The newest version!
/*
* This file is part of FlinkClient
* https://github.com/nextbreakpoint/flinkclient
*
* OpenAPI spec version: v1/1.20-SNAPSHOT
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.nextbreakpoint.flinkclient.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.nextbreakpoint.flinkclient.model.CheckpointStatsStatus;
import com.nextbreakpoint.flinkclient.model.RestAPICheckpointType;
import com.nextbreakpoint.flinkclient.model.TaskCheckpointStatistics;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* CheckpointStatistics
*/
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2024-11-23T19:15:53.419913Z[Europe/London]")
public class CheckpointStatistics {
@SerializedName("alignment_buffered")
private Long alignmentBuffered = null;
@SerializedName("checkpoint_type")
private RestAPICheckpointType checkpointType = null;
@SerializedName("checkpointed_size")
private Long checkpointedSize = null;
@SerializedName("className")
private String className = null;
@SerializedName("end_to_end_duration")
private Long endToEndDuration = null;
@SerializedName("id")
private Long id = null;
@SerializedName("is_savepoint")
private Boolean isSavepoint = null;
@SerializedName("latest_ack_timestamp")
private Long latestAckTimestamp = null;
@SerializedName("num_acknowledged_subtasks")
private Integer numAcknowledgedSubtasks = null;
@SerializedName("num_subtasks")
private Integer numSubtasks = null;
@SerializedName("persisted_data")
private Long persistedData = null;
@SerializedName("processed_data")
private Long processedData = null;
@SerializedName("savepointFormat")
private String savepointFormat = null;
@SerializedName("state_size")
private Long stateSize = null;
@SerializedName("status")
private CheckpointStatsStatus status = null;
@SerializedName("tasks")
private Map tasks = null;
@SerializedName("trigger_timestamp")
private Long triggerTimestamp = null;
public CheckpointStatistics() {
this.className = this.getClass().getSimpleName();
}
public CheckpointStatistics alignmentBuffered(Long alignmentBuffered) {
this.alignmentBuffered = alignmentBuffered;
return this;
}
/**
* Get alignmentBuffered
* @return alignmentBuffered
**/
@Schema(description = "")
public Long getAlignmentBuffered() {
return alignmentBuffered;
}
public void setAlignmentBuffered(Long alignmentBuffered) {
this.alignmentBuffered = alignmentBuffered;
}
public CheckpointStatistics checkpointType(RestAPICheckpointType checkpointType) {
this.checkpointType = checkpointType;
return this;
}
/**
* Get checkpointType
* @return checkpointType
**/
@Schema(description = "")
public RestAPICheckpointType getCheckpointType() {
return checkpointType;
}
public void setCheckpointType(RestAPICheckpointType checkpointType) {
this.checkpointType = checkpointType;
}
public CheckpointStatistics checkpointedSize(Long checkpointedSize) {
this.checkpointedSize = checkpointedSize;
return this;
}
/**
* Get checkpointedSize
* @return checkpointedSize
**/
@Schema(description = "")
public Long getCheckpointedSize() {
return checkpointedSize;
}
public void setCheckpointedSize(Long checkpointedSize) {
this.checkpointedSize = checkpointedSize;
}
public CheckpointStatistics className(String className) {
this.className = className;
return this;
}
/**
* Get className
* @return className
**/
@Schema(required = true, description = "")
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className;
}
public CheckpointStatistics endToEndDuration(Long endToEndDuration) {
this.endToEndDuration = endToEndDuration;
return this;
}
/**
* Get endToEndDuration
* @return endToEndDuration
**/
@Schema(description = "")
public Long getEndToEndDuration() {
return endToEndDuration;
}
public void setEndToEndDuration(Long endToEndDuration) {
this.endToEndDuration = endToEndDuration;
}
public CheckpointStatistics id(Long id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@Schema(description = "")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public CheckpointStatistics isSavepoint(Boolean isSavepoint) {
this.isSavepoint = isSavepoint;
return this;
}
/**
* Get isSavepoint
* @return isSavepoint
**/
@Schema(description = "")
public Boolean isIsSavepoint() {
return isSavepoint;
}
public void setIsSavepoint(Boolean isSavepoint) {
this.isSavepoint = isSavepoint;
}
public CheckpointStatistics latestAckTimestamp(Long latestAckTimestamp) {
this.latestAckTimestamp = latestAckTimestamp;
return this;
}
/**
* Get latestAckTimestamp
* @return latestAckTimestamp
**/
@Schema(description = "")
public Long getLatestAckTimestamp() {
return latestAckTimestamp;
}
public void setLatestAckTimestamp(Long latestAckTimestamp) {
this.latestAckTimestamp = latestAckTimestamp;
}
public CheckpointStatistics numAcknowledgedSubtasks(Integer numAcknowledgedSubtasks) {
this.numAcknowledgedSubtasks = numAcknowledgedSubtasks;
return this;
}
/**
* Get numAcknowledgedSubtasks
* @return numAcknowledgedSubtasks
**/
@Schema(description = "")
public Integer getNumAcknowledgedSubtasks() {
return numAcknowledgedSubtasks;
}
public void setNumAcknowledgedSubtasks(Integer numAcknowledgedSubtasks) {
this.numAcknowledgedSubtasks = numAcknowledgedSubtasks;
}
public CheckpointStatistics numSubtasks(Integer numSubtasks) {
this.numSubtasks = numSubtasks;
return this;
}
/**
* Get numSubtasks
* @return numSubtasks
**/
@Schema(description = "")
public Integer getNumSubtasks() {
return numSubtasks;
}
public void setNumSubtasks(Integer numSubtasks) {
this.numSubtasks = numSubtasks;
}
public CheckpointStatistics persistedData(Long persistedData) {
this.persistedData = persistedData;
return this;
}
/**
* Get persistedData
* @return persistedData
**/
@Schema(description = "")
public Long getPersistedData() {
return persistedData;
}
public void setPersistedData(Long persistedData) {
this.persistedData = persistedData;
}
public CheckpointStatistics processedData(Long processedData) {
this.processedData = processedData;
return this;
}
/**
* Get processedData
* @return processedData
**/
@Schema(description = "")
public Long getProcessedData() {
return processedData;
}
public void setProcessedData(Long processedData) {
this.processedData = processedData;
}
public CheckpointStatistics savepointFormat(String savepointFormat) {
this.savepointFormat = savepointFormat;
return this;
}
/**
* Get savepointFormat
* @return savepointFormat
**/
@Schema(description = "")
public String getSavepointFormat() {
return savepointFormat;
}
public void setSavepointFormat(String savepointFormat) {
this.savepointFormat = savepointFormat;
}
public CheckpointStatistics stateSize(Long stateSize) {
this.stateSize = stateSize;
return this;
}
/**
* Get stateSize
* @return stateSize
**/
@Schema(description = "")
public Long getStateSize() {
return stateSize;
}
public void setStateSize(Long stateSize) {
this.stateSize = stateSize;
}
public CheckpointStatistics status(CheckpointStatsStatus status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@Schema(description = "")
public CheckpointStatsStatus getStatus() {
return status;
}
public void setStatus(CheckpointStatsStatus status) {
this.status = status;
}
public CheckpointStatistics tasks(Map tasks) {
this.tasks = tasks;
return this;
}
public CheckpointStatistics putTasksItem(String key, TaskCheckpointStatistics tasksItem) {
if (this.tasks == null) {
this.tasks = new HashMap<>();
}
this.tasks.put(key, tasksItem);
return this;
}
/**
* Get tasks
* @return tasks
**/
@Schema(description = "")
public Map getTasks() {
return tasks;
}
public void setTasks(Map tasks) {
this.tasks = tasks;
}
public CheckpointStatistics triggerTimestamp(Long triggerTimestamp) {
this.triggerTimestamp = triggerTimestamp;
return this;
}
/**
* Get triggerTimestamp
* @return triggerTimestamp
**/
@Schema(description = "")
public Long getTriggerTimestamp() {
return triggerTimestamp;
}
public void setTriggerTimestamp(Long triggerTimestamp) {
this.triggerTimestamp = triggerTimestamp;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CheckpointStatistics checkpointStatistics = (CheckpointStatistics) o;
return Objects.equals(this.alignmentBuffered, checkpointStatistics.alignmentBuffered) &&
Objects.equals(this.checkpointType, checkpointStatistics.checkpointType) &&
Objects.equals(this.checkpointedSize, checkpointStatistics.checkpointedSize) &&
Objects.equals(this.className, checkpointStatistics.className) &&
Objects.equals(this.endToEndDuration, checkpointStatistics.endToEndDuration) &&
Objects.equals(this.id, checkpointStatistics.id) &&
Objects.equals(this.isSavepoint, checkpointStatistics.isSavepoint) &&
Objects.equals(this.latestAckTimestamp, checkpointStatistics.latestAckTimestamp) &&
Objects.equals(this.numAcknowledgedSubtasks, checkpointStatistics.numAcknowledgedSubtasks) &&
Objects.equals(this.numSubtasks, checkpointStatistics.numSubtasks) &&
Objects.equals(this.persistedData, checkpointStatistics.persistedData) &&
Objects.equals(this.processedData, checkpointStatistics.processedData) &&
Objects.equals(this.savepointFormat, checkpointStatistics.savepointFormat) &&
Objects.equals(this.stateSize, checkpointStatistics.stateSize) &&
Objects.equals(this.status, checkpointStatistics.status) &&
Objects.equals(this.tasks, checkpointStatistics.tasks) &&
Objects.equals(this.triggerTimestamp, checkpointStatistics.triggerTimestamp);
}
@Override
public int hashCode() {
return Objects.hash(alignmentBuffered, checkpointType, checkpointedSize, className, endToEndDuration, id, isSavepoint, latestAckTimestamp, numAcknowledgedSubtasks, numSubtasks, persistedData, processedData, savepointFormat, stateSize, status, tasks, triggerTimestamp);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CheckpointStatistics {\n");
sb.append(" alignmentBuffered: ").append(toIndentedString(alignmentBuffered)).append("\n");
sb.append(" checkpointType: ").append(toIndentedString(checkpointType)).append("\n");
sb.append(" checkpointedSize: ").append(toIndentedString(checkpointedSize)).append("\n");
sb.append(" className: ").append(toIndentedString(className)).append("\n");
sb.append(" endToEndDuration: ").append(toIndentedString(endToEndDuration)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" isSavepoint: ").append(toIndentedString(isSavepoint)).append("\n");
sb.append(" latestAckTimestamp: ").append(toIndentedString(latestAckTimestamp)).append("\n");
sb.append(" numAcknowledgedSubtasks: ").append(toIndentedString(numAcknowledgedSubtasks)).append("\n");
sb.append(" numSubtasks: ").append(toIndentedString(numSubtasks)).append("\n");
sb.append(" persistedData: ").append(toIndentedString(persistedData)).append("\n");
sb.append(" processedData: ").append(toIndentedString(processedData)).append("\n");
sb.append(" savepointFormat: ").append(toIndentedString(savepointFormat)).append("\n");
sb.append(" stateSize: ").append(toIndentedString(stateSize)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" tasks: ").append(toIndentedString(tasks)).append("\n");
sb.append(" triggerTimestamp: ").append(toIndentedString(triggerTimestamp)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy