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

com.hubspot.mesos.json.MesosMasterSlaveObject Maven / Gradle / Ivy

The newest version!
package com.hubspot.mesos.json;

import java.util.Map;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class MesosMasterSlaveObject {

  private final String id;
  private final String pid;
  private final String hostname;
  private final Map attributes;
  private final long registeredTime;
  private final MesosResourcesObject resources;

  @JsonCreator
  public MesosMasterSlaveObject(@JsonProperty("id") String id, @JsonProperty("pid") String pid, @JsonProperty("hostname") String hostname, @JsonProperty("registered_time") long registeredTime,
      @JsonProperty("resources") MesosResourcesObject resources, @JsonProperty("attributes") Map attributes) {
    this.id = id;
    this.pid = pid;
    this.hostname = hostname;
    this.registeredTime = registeredTime;
    this.resources = resources;
    this.attributes = attributes;
  }

  public Map getAttributes() {
    return attributes;
  }

  public String getId() {
    return id;
  }

  public String getPid() {
    return pid;
  }

  public String getHostname() {
    return hostname;
  }

  public long getRegisteredTime() {
    return registeredTime;
  }

  public MesosResourcesObject getResources() {
    return resources;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy