All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cisco.trex.stateful.model.ServerStatus Maven / Gradle / Ivy

There is a newer version: 1.69
Show newest version
package com.cisco.trex.stateful.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;

public class ServerStatus {

  public enum State {
    @JsonProperty("0")
    IDLE,

    @JsonProperty("1")
    LOADED,

    @JsonProperty("2")
    PARSING,

    @JsonProperty("3")
    BUILDING,

    @JsonProperty("4")
    TRANSMITTING,

    @JsonProperty("5")
    CLEANUP;
  }

  @JsonProperty("epoch")
  private int epoch;

  @JsonProperty("state")
  private State state;

  @JsonProperty("state_profile")
  private Map stateProfile;

  @JsonProperty("epoch")
  public int getEpoch() {
    return epoch;
  }

  @JsonProperty("epoch")
  public void setEpoch(int epoch) {
    this.epoch = epoch;
  }

  @JsonProperty("state")
  public State getState() {
    return state;
  }

  @JsonProperty("state")
  public void setState(State state) {
    this.state = state;
  }

  @JsonProperty("state_profile")
  public Map getStateProfile() {
    return stateProfile;
  }

  @JsonProperty("state_profile")
  public void setStateProfile(Map stateProfile) {
    this.stateProfile = stateProfile;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy