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

com.hubspot.singularity.SingularityTaskCleanup Maven / Gradle / Ivy

The newest version!
package com.hubspot.singularity;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Optional;

public class SingularityTaskCleanup {

  private final Optional user;
  private final TaskCleanupType cleanupType;
  private final long timestamp;
  private final SingularityTaskId taskId;
  private final Optional message;
  private final Optional actionId;

  @JsonCreator
  public SingularityTaskCleanup(@JsonProperty("user") Optional user, @JsonProperty("cleanupType") TaskCleanupType cleanupType, @JsonProperty("timestamp") long timestamp,
      @JsonProperty("taskId") SingularityTaskId taskId, @JsonProperty("message") Optional message, @JsonProperty("actionId") Optional actionId) {
    this.user = user;
    this.cleanupType = cleanupType;
    this.timestamp = timestamp;
    this.taskId = taskId;
    this.message = message;
    this.actionId = actionId;
  }

  public Optional getActionId() {
    return actionId;
  }

  public Optional getMessage() {
    return message;
  }

  public Optional getUser() {
    return user;
  }

  public TaskCleanupType getCleanupType() {
    return cleanupType;
  }

  public long getTimestamp() {
    return timestamp;
  }

  public SingularityTaskId getTaskId() {
    return taskId;
  }

  @Override
  public String toString() {
    return "SingularityTaskCleanup [user=" + user + ", cleanupType=" + cleanupType + ", timestamp=" + timestamp + ", taskId=" + taskId + ", message=" + message + ", actionId=" + actionId + "]";
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy