com.casper.sdk.model.status.StatusData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of casper-java-sdk Show documentation
Show all versions of casper-java-sdk Show documentation
SDK to streamline the 3rd party Java client integration processes. Such 3rd parties include exchanges & app developers.
The newest version!
package com.casper.sdk.model.status;
import com.casper.sdk.model.common.Digest;
import com.casper.sdk.model.common.RpcResult;
import com.casper.sdk.model.key.PublicKey;
import com.casper.sdk.model.peer.PeerEntry;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import java.sql.Date;
import java.util.List;
/**
* Returns the current status of the node
*
* @author Alexandre Carvalho
* @author Andre Bertolace
* @since 0.0.1
*/
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class StatusData extends RpcResult {
/** The compiled node version */
@JsonProperty("build_version")
private String buildVersion;
/** The chainspec name */
@JsonProperty("chainspec_name")
private String chainSpecName;
/** @see MinimalBlockInfo */
@JsonProperty("last_added_block_info")
private MinimalBlockInfo lastAddedBlockInfo;
/** @see NextUpgrade */
@JsonProperty("next_upgrade")
private NextUpgrade nextUpgrade;
/** @see PublicKey */
@JsonProperty("our_public_signing_key")
private PublicKey publicKey;
/** List of * * @see PeerEntry */
private List peers;
/** The next round length if this node is a validator */
@JsonProperty("round_length")
private String roundLength;
/** Time passed since the node has started */
@JsonInclude(JsonInclude.Include.NON_NULL)
private String uptime;
/**
* The state root hash used at the start of the current session
*/
@JsonProperty("starting_state_root_hash")
private String startStateRootHash;
/** Node run mode */
@JsonProperty("node_state")
@JsonInclude(JsonInclude.Include.NON_NULL)
private NodeState nodeState;
/** The state of the reactor */
@JsonProperty("reactor_state")
private ReactorState reactorState;
/** Timestamp of the last recorded progress in the reactor */
@JsonProperty("last_progress")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
private Date lastProgress;
/** The available block range in storage */
@JsonProperty("available_block_range")
private AvailableBlockRange availableBlockRange;
/** The status of the block synchronizer builders */
@JsonProperty("block_sync")
private BlockSynchronizerStatus blockSynchronizerStatus;
/** The hash of the latest switch block. */
@JsonProperty("latest_switch_block_hash")
private Digest lastSwitchBlockHash;
}