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

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

The newest version!
package com.hubspot.singularity;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

@ApiModel( description = "Represents the path to a specific task's Mesos sandbox" )
public class SingularitySandbox {

  private final List files;
  private final String fullPathToRoot;
  private final String currentDirectory;
  private final String slaveHostname;

  @JsonCreator
  public SingularitySandbox(@JsonProperty("files") List files, @JsonProperty("fullPathToRoot") String fullPathToRoot, @JsonProperty("currentDirectory") String currentDirectory, @JsonProperty("slaveHostname") String slaveHostname) {
    this.files = files;
    this.currentDirectory = currentDirectory;
    this.fullPathToRoot = fullPathToRoot;
    this.slaveHostname = slaveHostname;
  }

  @ApiModelProperty("Full path to the root of the Mesos task sandbox")
  public String getFullPathToRoot() {
    return fullPathToRoot;
  }

  @ApiModelProperty("Hostname of tasks's slave")
  public String getSlaveHostname() {
    return slaveHostname;
  }

  @ApiModelProperty("List of files inside sandbox")
  public List getFiles() {
    return files;
  }

  @ApiModelProperty("Current directory")
  public String getCurrentDirectory() {
    return currentDirectory;
  }

  @Override
  public String toString() {
    return "SingularitySandbox [files=" + files + ", fullPathToRoot=" + fullPathToRoot + ", currentDirectory=" + currentDirectory + ", slaveHostname=" + slaveHostname + "]";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy