io.github.zanella.nomad.v1.nodes.models.TaskGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nomad-api Show documentation
Show all versions of nomad-api Show documentation
Java client for Nomad's HTTP API
The newest version!
package io.github.zanella.nomad.v1.nodes.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.github.zanella.nomad.v1.common.models.Constraint;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
import java.util.Map;
@Data
@NoArgsConstructor
@AllArgsConstructor(suppressConstructorProperties = true)
public class TaskGroup {
@Data
@NoArgsConstructor
@AllArgsConstructor(suppressConstructorProperties = true)
public static class RestartPolicy {
@JsonProperty("Delay") Long delay;
@JsonProperty("Interval") Long interval;
@JsonProperty("Attempts") Integer attempts;
@JsonProperty("Mode") String mode;
}
@Data
@NoArgsConstructor
@AllArgsConstructor(suppressConstructorProperties = true)
public static class EphemeralDisk {
@JsonProperty("Sticky") Boolean sticky;
@JsonProperty("Migrate") Boolean migrate;
@JsonProperty("SizeMB") Integer size;
}
@JsonProperty("Meta") Map meta;
@JsonProperty("Tasks") List tasks;
@JsonProperty("RestartPolicy") RestartPolicy restartPolicy;
@JsonProperty("Constraints") List constraints;
@JsonProperty("EphemeralDisk") EphemeralDisk ephemeralDisk;
@JsonProperty("Count") Integer count;
@JsonProperty("Name") String name;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy